Template Function qhipster::isPowerOf2

Function Documentation

template<class Integral>
constexpr bool qhipster::isPowerOf2(Integral i)

checks whether an integer is a power of 2

Parameters
  • [in] i: an integer to be checked