isOdd

Is t odd

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

Examples

assert(isOdd(1));
assert(!isOdd(2));

Meta