SmartInt.max

The most positive possible value of this SmartInt type.

struct SmartInt(N, IntFlagPolicy _policy, Flag!"bitOps" bitOps = Yes.bitOps)
enum SmartInt!(N, policy, bitOps) max;

Examples

import checkedint.throws : SmartInt; // use IntFlagPolicy.throws;

assert(SmartInt!(int).max == int.max);
assert(SmartInt!(uint).max == uint.max);

Meta