isScalarType

Determines whether T is a scalar type.

Scalar types are numbers, booleans and characters.

enum bool isScalarType(T);

Return Value

$(D_KEYWORD true) if T is a scalar type, $(D_KEYWORD false) otherwise.

Examples

static assert(isScalarType!int);
static assert(!isScalarType!(int[]));

See Also

$(D_PSYMBOL isNumeric), $(D_PSYMBOL isBoolean), $(D_PSYMBOL isSomeChar).

Meta