Example how to use bvector<> in 64-bit mode
#include <iostream>
#include <assert.h>
#include "bm64.h"
{
try
{
cout << "BitCount = " << count << endl;
cout <<
"Max possible ID = " <<
bm::id_max-1 << endl;
bool range_found = bv.find_range(first, last);
assert(range_found);
(void)range_found;
cout << "[" << first << ", " << last << "]" << endl;
auto full_count = bv_full.
count();
cout << "Full vector bitcount = " << full_count << endl;
bv &= bv_full;
{
cout << idx << ", ";
}
cout << endl;
}
catch(std::exception& ex)
{
std::cerr << ex.what() << std::endl;
return 1;
}
return 0;
}