isBuiltinType

Determines whether T is a built-in type.

Built-in types are all basic types and arrays.

enum bool isBuiltinType(T);

Return Value

$(D_KEYWORD true) if T is a built-in type, $(D_KEYWORD false) otherwise.

Examples

static assert(isBuiltinType!int);
static assert(isBuiltinType!(int[]));
static assert(isBuiltinType!(int[int]));
static assert(!isBuiltinType!(int*));

See Also

$(D_PSYMBOL isBasicType!T), $(D_PSYMBOL isArray), $(D_PSYMBOL isAssociativeArray).

Meta