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