rank of range

drug via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jul 1 10:05:20 PDT 2017


Hello!
Is there a convenient way to get rank of range a.k.a. count of 
dimensions in compile time? Like:

static assert( rankOf!(uint[]) == 1);
static assert( rankOf!(uint[][][]) == 3);


More information about the Digitalmars-d-learn mailing list