58 cout <<
"BitCount = " << count << endl;
59 cout <<
"Max possible ID = " <<
bm::id_max-1 << endl;
62 bool range_found = bv.find_range(first, last);
66 cout <<
"[" << first <<
", " << last <<
"]" << endl;
71 auto full_count = bv_full.
count();
72 cout <<
"Full vector bitcount = " << full_count << endl;
78 for (; en.
valid(); ++en)
85 catch(std::exception& ex)
87 std::cerr << ex.what() << std::endl;
pre-processor un-defines to avoid global space pollution (internal)
Constant iterator designed to enumerate "ON" bits.
bool valid() const BMNOEXCEPT
Checks if iterator is still valid.
Bitvector Bit-vector container with runtime compression of bits.
size_type count() const BMNOEXCEPT
population count (count of ON bits)
bvector< Alloc > & set(size_type n, bool val=true)
Sets bit n if val is true, clears bit n if val is false.
bvector_size_type size_type
unsigned long long int id64_t