isAssociativeArray

Detect whether T is an associative array type

See also: __traits(isAssociativeArray, T)

enum bool isAssociativeArray(T);

Examples

struct S;

static assert( isAssociativeArray!(int[string]));
static assert( isAssociativeArray!(S[S]));
static assert(!isAssociativeArray!(string[]));
static assert(!isAssociativeArray!S);
static assert(!isAssociativeArray!(int[4]));

Meta