Get the value of num as a SmartInt!N. The integral type N can be infered from the argument.
import checkedint.throws : smartInt, SmartInt; // use IntFlagPolicy.throws auto a = smartInt(55uL); static assert(is(typeof(a) == SmartInt!ulong)); assert(a == 55);
See Implementation
Get the value of num as a SmartInt!N. The integral type N can be infered from the argument.