Template Function IntegerOps::isPowerOfTwo

Template Function IntegerOps::isPowerOfTwo#

Function Documentation#

template<typename T>
inline bool IntegerOps::isPowerOfTwo(T value)#

Returns true if the value is a power of two.

Zero is considered a power of two.