45template<
typename SV>
void PrintSV(
const SV& sv)
47 typename SV::const_iterator it = sv.begin();
48 typename SV::const_iterator it_end = sv.end();
50 for (; it != it_end; ++it)
98 rsc_sparse_vector_u32::const_iterator it =
110 }
while (it.advance());
116 cout << it.value() << endl;
121 catch(std::exception& ex)
123 std::cerr << ex.what() << std::endl;
Compressed bit-vector bvector<> container, set algebraic methods, traversal iterators.
Sparse constainer sparse_vector<> for integer types using bit-transposition transform.
Compressed sparse container rsc_sparse_vector<> for integer types.
pre-processor un-defines to avoid global space pollution (internal)
back_insert_iterator get_back_inserter()
void sync(bool force)
Re-calculate rank-select index for faster access to vector.
const_iterator get_const_iterator(size_type idx) const BMNOEXCEPT
Get const_itertor re-positioned to specific element.
succinct sparse vector with runtime compression using bit-slicing / transposition method
bm::sparse_vector< unsigned, bm::bvector<> > sparse_vector_u32
bm::rsc_sparse_vector< unsigned, sparse_vector_u32 > rsc_sparse_vector_u32
void PrintSV(const SV &sv)
Print sparse vector content.