BitMagic-C++
svsample08.cpp File Reference

Example: sparse_vector<> selective de-serialization (gather) and range deserialization. More...

#include <iostream>
#include <vector>
#include "bm.h"
#include "bmsparsevec.h"
#include "bmsparsevec_serial.h"
#include "bmundef.h"
Include dependency graph for svsample08.cpp:

Go to the source code of this file.

Typedefs

typedef bm::sparse_vector< unsigned, bm::bvector<> > svector_u32

Functions

template<typename SV>
void PrintSV (const SV &sv)
 Print sparse vector content.
int main (void)

Detailed Description

Example: sparse_vector<> selective de-serialization (gather) and range deserialization.

See also
strsvsample05.cpp

Definition in file svsample08.cpp.

Typedef Documentation

◆ svector_u32

typedef bm::sparse_vector<unsigned, bm::bvector<> > svector_u32

Definition at line 62 of file svsample08.cpp.

Function Documentation

◆ main()

◆ PrintSV()

template<typename SV>
void PrintSV ( const SV & sv)

Print sparse vector content.

Definition at line 47 of file svsample08.cpp.

Referenced by main().