isIntegral

checkedint-aware wrapper for std.traits.isIntegral

template isIntegral (
T
) {}

Examples

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

Meta