lib/bitmap.cpp
/// Sequentially counts the number of set bits in the given range of blocks.
///
Sequentially counts the number of set bits in the given range of blocks.
Sequentially counts the number of set bits in the given range of blocks .
static constexpr size_type pop_count(const std::span<const block_t> blocks) {
  size_type sum = 0;
  for (const auto elem : blocks) {
    sum += std::popcount(elem);
  }
  return sum;
}
static constexpr size_type pop_count ( const std :: span < const block_t > blocks ) { size_type sum = 0 ; for ( const auto elem : blocks ) { sum += std :: popcount ( elem ) ; } return sum ; }
Sequentially counts the number of set bits in the given range of blocks.
Sequentially counts the number of set bits in the given range of blocks .