DeepElementType

Returns the element type of a struct with .DeepElement inner alias or a type of common array. Returns ForeachType if struct does not have .DeepElement member.

  1. template DeepElementType(S)
    @optmath
    template DeepElementType (
    S
    ) if (
    is(S == struct) ||
    is(S == class)
    ||
    is(S == interface)
    ) {}
  2. alias DeepElementType(S : T[], T) = T

Members

Aliases

DeepElementType
alias DeepElementType = S.DeepElement
Undocumented in source.
DeepElementType
alias DeepElementType = ForeachType!S
Undocumented in source.

Meta