The OpenD Programming Language

isArray

Detect whether type T is an array (static or dynamic; for associative arrays see isAssociativeArray).

enum bool isArray(T);

Examples

static assert( isArray!(int[]));
static assert( isArray!(int[5]));
static assert( isArray!(string));

static assert(!isArray!uint);
static assert(!isArray!(uint[uint]));
static assert(!isArray!(typeof(null)));

Meta