BitMagic-C++
|
Example: demo for bit-vector traversal techniques. More...
#include <stdlib.h>
#include <iostream>
#include <vector>
#include <utility>
#include <cassert>
#include "bm.h"
#include "bmalgo.h"
#include "bmundef.h"
Go to the source code of this file.
Data Structures | |
struct | bit_visitor_functor |
Visitor calss for bm::for_each_bit() algorithm It is NOT a classic functor (with function call operator() overload) For efficiency it needs to support two methods: add_bits and add_range which corresponds to different internal methods of representation of sets in the bm::bvector<> (bit-stream and D-GAP/RLE representation) More... | |
Functions | |
static int | bit_visitor_callback (void *handle_ptr, bm::id_t bit_idx) noexcept |
More... | |
int | main (void) |
More... | |
Example: demo for bit-vector traversal techniques.
Definition in file sample25.cpp.