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)
  2. alias DeepElementType(S : T[], T) = T
    @optmath
    alias DeepElementType(S : T[], T) = T

Meta