Template Function lbcrypto::IsPowerOfTwo

Function Documentation

template<typename T, std::enable_if_t<std::is_integral_v<T>, bool> = true>
inline constexpr bool lbcrypto::IsPowerOfTwo(T Input)

Determines if a number is a power of 2.

Parameters

Input – to test if it is a power of 2.

Returns

is true if the unsigned int is a power of 2.