BaseType

Returns the array's base type

Returns the string type for any type that returns true for isSomeString!T

template BaseType (
T
) {}

Examples

1 alias T = BaseType!(int[][]);
2 alias T2 = BaseType!(int[]);
3 alias T3 = BaseType!int;
4 alias T4 = BaseType!(string[])
5 
6 static assert(is(T == int));
7 static assert(is(T2 == int));
8 static assert(is(T3 == int));
9 static assert(is(T4 == string));

Meta