50 unsigned int arr[2058] = {0, };
56 auto cnt = bv.
count();
57 cout <<
"Imported " << cnt <<
" bits." << endl;
61 assert(bv.
test(65535));
62 assert(bv.
test(65536 + 7));
65 catch(std::exception& ex)
67 std::cerr << ex.what() << std::endl;
Compressed bit-vector bvector<> container, set algebraic methods, traversal iterators.
Import of bvector<> from native type bit-arrays.
pre-processor un-defines to avoid global space pollution (internal)
Bitvector Bit-vector container with runtime compression of bits.
bool test(size_type n) const BMNOEXCEPT
returns true if bit n is set and false is bit n is 0.
size_type count() const BMNOEXCEPT
population count (count of ON bits)
void bit_import_u32(BV &bv, const unsigned int *BMRESTRICT bit_arr, typename BV::size_type bit_arr_size, bool optimize)
Import native stream of bits (represented as 32-bit unsigned ints)