isCheckedInt

Evaluates to true if T is an instance of SafeInt or SmartInt.

@safe
enum isCheckedInt (
T
)

Examples

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

assert( isCheckedInt!(SafeInt!int));
assert( isCheckedInt!(SmartInt!int));

assert(!isCheckedInt!int);

Meta