Get a view of this SmartInt that allows bitwise operations.
1 import checkedint.throws : SmartInt; // use IntFlagPolicy.throws 2 3 SmartInt!(int, No.bitOps) n = 1; 4 static assert(!__traits(compiles, n << 2)); 5 assert(n.bits << 2 == 4);
See Implementation
Get a view of this SmartInt that allows bitwise operations.