Go to the documentation of this file.
77 std::for_each(en, en_end,
Print);
84 for (; en.
valid(); ++en)
90 catch(std::exception& ex)
92 std::cerr << ex.what() << std::endl;
void Print(bm::bvector<>::size_type n)
Constant iterator designed to enumerate "ON" bits.
bool go_to(size_type pos) BMNOEXCEPT
go to a specific position in the bit-vector (or next)
bool valid() const BMNOEXCEPT
Checks if iterator is still valid. Analog of != 0 comparison for pointers.
enumerator end() const
Returns enumerator pointing on the next bit after the last.
enumerator first() const
Returns enumerator pointing on the first non-zero bit.
Compressed bit-vector bvector<> container, set algebraic methods, traversal iterators.