Example of bulk insert iterator
- See also
- bm::bvector::insert_iterator
-
bm::bvector::bulk_insert_iterator
#include <stdlib.h>
#include <iostream>
using namespace std;
{
try
{
for (unsigned i = 5; i != 0; --i)
{
iit = i;
cout << bv.
count() <<
", ";
}
cout << endl;
{
{
bulk_iit = i;
cout << bv.
count() <<
", ";
}
cout << endl;
}
cout << bv.
count() << endl;
{
bulk_iit = i;
cout << bv.
count() << endl;
cout << bv.
count() << endl;
}
}
catch(std::exception& ex)
{
std::cerr << ex.what() << std::endl;
return 1;
}
return 0;
}
Compressed bit-vector bvector<> container, set algebraic methods, traversal iterators.
pre-processor un-defines to avoid global space pollution (internal)
Output iterator iterator designed to set "ON" bits based on input sequence of integers.
Output iterator iterator designed to set "ON" bits based on input sequence of integers (bit indeces).
Bitvector Bit-vector container with runtime compression of bits.
size_type count() const BMNOEXCEPT
population count (count of ON bits)
insert_iterator inserter()
bvector_size_type size_type
void clear(const size_type *ids, size_type ids_size, bm::sort_order so=bm::BM_UNKNOWN)
clear list of bits in this bitset