multidimStaticArrayLengths

Get, as an expression tuple, multidimensional static array lengths considering T to be n-dimensioanl static array.

Members

Aliases

multidimStaticArrayLengths
alias multidimStaticArrayLengths = expressionTuple!(T.length, multidimStaticArrayLengths!(ArrayElementType!T, n - 1))
Undocumented in source.
multidimStaticArrayLengths
alias multidimStaticArrayLengths = expressionTuple!()
Undocumented in source.

Examples

t
{
	alias e1 = multidimStaticArrayLengths!(int[7][8]);
	static assert(e1.length == 2 && e1[0] == 8 && e1[1] == 7);

	alias e2 = multidimStaticArrayLengths!(int[7][8], 1);
	static assert(e2.length == 1 && e2[0] == 8);
	static assert(multidimStaticArrayLengths!(int[7][8], 0).length == 0

Meta