BitMagic-C++
strsvsample02a.cpp File Reference

Example: str_sparse_vector<> sort example. More...

#include <iostream>
#include <string>
#include <vector>
#include <random>
#include <algorithm>
#include "bm.h"
#include "bmstrsparsevec.h"
#include "bmsparsevec_algo.h"
#include "bmtimer.h"
#include "bmdbg.h"
#include "bmundef.h"
Include dependency graph for strsvsample02a.cpp:

Go to the source code of this file.

Typedefs

typedef bm::str_sparse_vector< char, bvector_type, 3 > str_sv_type

Functions

static void generate_string_set (vector< string > &str_vec, const unsigned max_coll=250000)
 generate collection of strings from integers and shuffle it
int main (void)

Detailed Description

Example: str_sparse_vector<> sort example.

Definition in file strsvsample02a.cpp.

Typedef Documentation

◆ str_sv_type

Definition at line 56 of file strsvsample02a.cpp.

Function Documentation

◆ generate_string_set()

void generate_string_set ( vector< string > & str_vec,
const unsigned max_coll = 250000 )
static

generate collection of strings from integers and shuffle it

Definition at line 62 of file strsvsample02a.cpp.

Referenced by main().

◆ main()