87 bv1.
set(1000000,
false);
110 cerr <<
"Equivalent. Comparison result = " 111 << bv2.compare(bv3) << endl;
115 cout <<
"Error." << endl;
119 catch(std::exception& ex)
121 std::cerr << ex.what() << std::endl;
Compressed bit-vector bvector<> container, set algebraic methods, traversal iterators.
size_type get_next(size_type prev) const
Finds the number of the next bit ON.
bvector< Alloc > & set(size_type n, bool val=true)
Sets bit n if val is true, clears bit n if val is false.
size_type get_first() const
find first 1 bit in vector. Function may return 0 and this requires an extra check if bit 0 is actual...
static void print_bvector(const bm::bvector<> &bv)