isFixedPoint

checkedint-aware wrapper for future.traits.isFixedPoint

template isFixedPoint (
T
) {}

Examples

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

Meta