isEven

Is t even

@safe @nogc nothrow pure
bool
isEven
(
T
)
(
T t
)
if (
__traits(isArithmetic, T)
)

Examples

assert(!isEven(1));
assert(isEven(2));

Meta