<xstd/bits/bit_algorithm/bit_count.hpp>¶
bit_count¶
As ranges::count in [alg.count], with:
- Constraints:
Ris a sequence of ours, a window included. - Returns: The number of positions of
rholdingvalue, asranges::range_difference_t<const R>, signed asranges::count's result is: the ones popcounted, and the zeros asranges::size(r)less the ones. - Complexity: O(
N/D) popcounts. The padding of the last block is never counted.