isArrayType

Check if type is an array type and which kind of array it is

Members

Static variables

isArrayType
auto isArrayType;
Undocumented in source.
isArrayType
auto isArrayType;
Undocumented in source.
isArrayType
auto isArrayType;
Undocumented in source.
isArrayType
auto isArrayType;
Undocumented in source.

Parameters

T

type to check

Return Value

ArrayKind value indicating if T is an array and if it is, static or dynamic

Examples

static assert ( isArrayType!(char[15]) == ArrayKind.Static);
static assert ( isArrayType!(char[]) == ArrayKind.Dynamic);
static assert ( isArrayType!(char[][5]) == ArrayKind.Static);
static assert ( isArrayType!(char) == ArrayKind.NotArray);
static assert ( isArrayType!(int[int]) == ArrayKind.Associative);
static assert ( isArrayType!(const(int[int])) == ArrayKind.Associative);
static assert (!isArrayType!(char));

Meta