isSafeInt

Evaluates to true if T is an instance of SafeInt.

@safe
enum isSafeInt (
T
)

Examples

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

assert( isSafeInt!(SafeInt!int));

assert(!isSafeInt!int);
assert(!isSafeInt!(SmartInt!int));

Meta