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
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.