ArrayDimensions

Returns the number of dimensions of the given array type

deprecated("Use ArraySerialier's ArrayDimensions instead")
template ArrayDimensions (
T
) {
enum ArrayDimensions;
enum ArrayDimensions;
}

Examples

auto dims = ArrayDimensions!(int[][]);
static assert(dims == 2);

Meta