SmartInt.max

The most positive possible value of this SmartInt type.

  1. enum SmartInt!(N, policy, bitOps) max;
    struct SmartInt(N, IntFlagPolicy _policy, Flag!"bitOps" bitOps = Yes.bitOps)
    static if(__VERSION__ >= 2067)
    enum SmartInt!(N, policy, bitOps) max;
  2. auto max [@property getter]

Examples

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

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

Meta