isSigned

checkedint-aware wrapper for std.traits.isSigned

template isSigned (
T
) {}

Examples

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

Meta