function template
std::has_single_bit
- Header
<bit>- Draft
- [bit.pow.two]
- Scope
std- cppreference
- std::has_single_bit
Synopsis
template</* implementation-defined */ T>
[[nodiscard]] constexpr bool has_single_bit(T x) noexcept;function template
<bit>stdtemplate</* implementation-defined */ T>
[[nodiscard]] constexpr bool has_single_bit(T x) noexcept;