staticArrayDims

Gets the rank (number of dimensions) of a static array type.

If T isn't a static array assumes it to be a zero-dimensional static array with single element and returns zero.

Members

Manifest constants

staticArrayDims
enum staticArrayDims;
Undocumented in source.
staticArrayDims
enum staticArrayDims;
Undocumented in source.

Examples

t
{
	static assert(staticArrayDims!int == 0);
	static assert(staticArrayDims!(int[]) == 0);
	static assert(staticArrayDims!(int[0]) == 1);
	static assert(staticArrayDims!(int[7][8]) == 2);
	static assert(staticArrayDims!(int[0][]) == 0);
	static assert(staticArrayDims!(int[][0]) == 1

Meta