Template Function TRAP::Math::IsOdd(T)#

Function Documentation#

template<typename T>
constexpr bool TRAP::Math::IsOdd(T x)#

Returns whether the given integer is odd or not.

Parameters:

x – Integer to check.

Returns:

True if the given integer is odd, false otherwise.