Example of bit-vector merge
- See also
- bm::bvector::merge
#include <stdlib.h>
#include <iostream>
using namespace std;
{
try
{
std::cout <<
"Before merge bv2 count = " << bv2.
count() << std::endl;
std::cout << "Merge." << std::endl;
bv1.merge(bv2);
std::cout << "bv1 count = " << bv1.count() << std::endl;
std::cout << "bv2 count = " << bv2.count() << std::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)
Bitvector Bit-vector container with runtime compression of bits.
size_type count() const BMNOEXCEPT
population count (count of ON bits)