57 cout <<
"BitCount = " << count << endl;
58 cout <<
"Max possible ID = " <<
bm::id_max-1 << endl;
65 cout <<
"[" << first <<
", " << last <<
"]" << endl;
70 auto full_count = bv_full.
count();
71 cout <<
"Full vector bitcount = " << full_count << endl;
76 bm::bvector<>::enumerator en = bv.
first();
77 for (; en.valid(); ++en)
84 catch(std::exception& ex)
86 std::cerr << ex.what() << std::endl;
size_type count() const BMNOEXCEPT
population cout (count of ON bits)
bool find_range(size_type &first, size_type &last) const BMNOEXCEPT
Finds dynamic range of bit-vector [first, last].
bvector< Alloc > & set(size_type n, bool val=true)
Sets bit n if val is true, clears bit n if val is false.
enumerator first() const
Returns enumerator pointing on the first non-zero bit.
unsigned long long int id64_t