import checkedint.throws : SmartInt, SafeInt; // use IntFlagPolicy.throws assert( hasBitOps!(SafeInt!(int, Yes.bitOps))); assert( hasBitOps!(SmartInt!(int, Yes.bitOps))); assert( hasBitOps!int); assert( hasBitOps!bool); assert( hasBitOps!dchar); assert(!hasBitOps!(SafeInt!(int, No.bitOps))); assert(!hasBitOps!(SmartInt!(int, No.bitOps))); assert(!hasBitOps!float);
Evaluates to true if either:
And bitwise operators such as << and ~ are available for T.