Template Function TRAP::Math::IsPowerOfTwo(genType)#

Function Documentation#

template<typename genType>
constexpr bool TRAP::Math::IsPowerOfTwo(genType value)#

Check if value is a power of two number.

Parameters:

value – Specify the value to evaluate.

Returns:

True if the value is a power of two number.