isUnsigned

checkedint-aware wrapper for isUnsigned

template isUnsigned (
T
) {}

Examples

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

Meta