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

Function Documentation#

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

Returns whether the given integer is even or not.

Parameters:

x – Integer to check.

Returns:

True if the given integer is even, false otherwise.