isScalarType

checkedint-aware wrapper for std.traits.isScalarType

template isScalarType (
T
) {}

Examples

1 foreach (T; AliasSeq!(int, ushort, double, bool))
2     assert(isBasicScalar!T && isScalarType!T);
3 
4 assert(!isBasicScalar!(SmartInt!int));
5 assert( isScalarType!(SmartInt!int));
6 
7 foreach (T; AliasSeq!(int[]))
8     assert(!(isBasicScalar!T || isScalarType!T));

Meta