BitMagic-C++
Typedefs | Functions
strsvsample03.cpp File Reference

Example: str_sparse_vector<> back insert iterator example. More...

#include <iostream>
#include <string>
#include <vector>
#include <random>
#include <algorithm>
#include <fstream>
#include "bm.h"
#include "bmstrsparsevec.h"
#include "bmsparsevec_serial.h"
#include "bmundef.h"
Include dependency graph for strsvsample03.cpp:

Go to the source code of this file.

Typedefs

typedef bm::bvector bvector_type
 
typedef bm::str_sparse_vector< char, bvector_type, 32 > str_sv_type
 

Functions

static void generate_string_set (vector< string > &str_vec)
  More...
 
int main (void)
  More...
 

Detailed Description

Example: str_sparse_vector<> back insert iterator example.

This example loads sparse vector from an STL container uses character re-mapping to compress, serialize and save container to disk. Example also illustrates how to check memory footprint.

Definition in file strsvsample03.cpp.