ElementTypeRec

template ElementTypeRec (
T
) {}

Examples

1 static assert( is( ElementTypeRec!int == int ) );
2 static assert( is( ElementTypeRec!(int[]) == int ) );
3 static assert( is( ElementTypeRec!(int[2]) == int ) );
4 static assert( is( ElementTypeRec!(int[][]) == int ) );
5 static assert( is( ElementTypeRec!(int[3][2]) == int ) );
6 static assert( is( ElementTypeRec!(typeof(iota(7))) == int ) );
7 static assert( is( ElementTypeRec!(VecN!10) == float ) );

Meta