BasicScalar

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

  • isScalarType!T, or
  • isCheckedInt!T

Otherwise, BasicScalar aliases to void.

Members

Aliases

BasicScalar
alias BasicScalar = Unqual!T
Undocumented in source.
BasicScalar
alias BasicScalar = TemplateArgsOf!T[0]
Undocumented in source.
BasicScalar
alias BasicScalar = void
Undocumented in source.

Examples

import checkedint.throws : SmartInt, SafeInt; // use IntFlagPolicy.throws

assert(is(BasicScalar!(SafeInt!int) == int));
assert(is(BasicScalar!(SmartInt!ushort) == ushort));

assert(is(BasicScalar!int == int));
assert(is(BasicScalar!(const shared real) == real));

Meta