bit_count< unsigned int >(unsigned int value) -> unsigned int
Specialisation for unsigned int.
template <class T>
bit_count(T value) -> unsigned int
Count the number of bits that are set in value. Uses std::bitset for generic implementation. There are optimised implementations for standard unsigned integer types.
value
bit_count< unsigned long >(unsigned long value) -> unsigned int
Specialisation for unsigned long.
bit_count< unsigned long long >(unsigned long long value) -> unsigned int
Specialisation for unsigned long long.