StripAllArrays

Members

Aliases

StripAllArrays
alias StripAllArrays = StripAllArrays!(ElementTypeOf!(T))
Undocumented in source.
StripAllArrays
alias StripAllArrays = T
Undocumented in source.

Parameters

T

any type

Return Value

If T is static or dynamic array, evaluates to single type which is the element type of that array. If such element type would also be an array, evaluates to its element type instead and so on recursively. In all other cases evaluates to just T.

Examples

static assert (is(StripAllArrays!(int[][4][][]) == int));
static assert (is(StripAllArrays!(int[float][4][][]) == int[float]));
static assert (is(StripAllArrays!(double) == double));

Meta