BitMagic-C++
sample26.cpp File Reference

Example: bvector<> with immutability (read-only). More...

#include <stdlib.h>
#include <iostream>
#include <cassert>
#include "bm.h"
#include "bmundef.h"
Include dependency graph for sample26.cpp:

Go to the source code of this file.

Functions

static void fill_bvector (bm::bvector<> *bv1, bm::bvector<> *bv2)
 Fill bit-vectors with values using dense and sparse distrubutions.
static void print_statistics (const bm::bvector<> &bv)
int main (void)

Variables

const unsigned MAX_VALUE = 1000000

Detailed Description

Example: bvector<> with immutability (read-only).

Definition in file sample26.cpp.

Function Documentation

◆ fill_bvector()

void fill_bvector ( bm::bvector<> * bv1,
bm::bvector<> * bv2 )
static

Fill bit-vectors with values using dense and sparse distrubutions.

Definition at line 48 of file sample26.cpp.

References MAX_VALUE, and bm::bvector< Alloc >::set().

Referenced by main().

◆ main()

◆ print_statistics()

Variable Documentation

◆ MAX_VALUE

const unsigned MAX_VALUE = 1000000

Definition at line 43 of file sample26.cpp.