BasicScalar

Aliases to the basic scalar type associated with T, assuming either:

  • isScalarType!T, or
  • isCheckedInt!T

Otherwise, BasicScalar aliases to void.

template BasicScalar (
T
) {}

Examples

1 import checkedint.throws : SmartInt, SafeInt; // use IntFlagPolicy.throws
2 
3 assert(is(BasicScalar!(SafeInt!int) == int));
4 assert(is(BasicScalar!(SmartInt!ushort) == ushort));
5 
6 assert(is(BasicScalar!int == int));
7 assert(is(BasicScalar!(const shared real) == real));

Meta