isMultiDimensionalArray

Detects whether type T is a multi dimensional array.

template isMultiDimensionalArray (
T
) {
enum isMultiDimensionalArray;
enum isMultiDimensionalArray;
}

Parameters

T

type to be tested

Return Value

true if T is a multi dimensional array

Examples

1 static assert(!isMultiDimensionalArray!(string[]) );
2 static assert(isMultiDimensionalArray!(int[][]) );
3 static assert(!isMultiDimensionalArray!(int[]) );
4 static assert(!isMultiDimensionalArray!(int) );
5 static assert(!isMultiDimensionalArray!(string) );
6 static assert(!isMultiDimensionalArray!(int[][] function()) );
7 static assert(!isMultiDimensionalArray!void);

Meta