SafeInt.max

The most positive possible value of this SafeInt type.

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

Examples

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

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

Meta