BitMagic-C++: sample10.cpp File Reference

BitMagic-C++

Functions
sample10.cpp File Reference

Example: bvector<> generation of random sub-set. More...

`#include <iostream>`
`#include "bm.h"`
`#include "bmrandom.h"`
Include dependency graph for sample10.cpp:

Go to the source code of this file.

## Functions
template<class T >
void | PrintContainer (T first, T last)
int | main (void)

## Detailed Description

Example: bvector<> generation of random sub-set.

Definition in file sample10.cpp.

## Function Documentation

## ◆ main()

int main | ( | void |  | ) |

Examples
  sample10.cpp.

Definition at line 47 of file sample10.cpp.

References bm::bvector< Alloc >::end(), bm::bvector< Alloc >::first(), PrintContainer(), bm::random_subset< BV >::sample(), and bm::bvector< Alloc >::set().

## ◆ PrintContainer()

template<class T >

void PrintContainer | ( | T | first,
|  | T | last
| ) |  |

Examples
  sample10.cpp.

Definition at line 36 of file sample10.cpp.

Referenced by main().