BitMagic-C++
|
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"
Go to the source code of this file.
Typedefs | |
typedef bm::bvector | bvector_type |
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 More... | |
int | main (void) |
More... | |
Example: str_sparse_vector<> sort example.
Definition in file strsvsample02a.cpp.
|
static |
generate collection of strings from integers and shuffle it
Definition at line 62 of file strsvsample02a.cpp.
Referenced by main().
int main | ( | void | ) |
Definition at line 80 of file strsvsample02a.cpp.
References bm::str_sparse_vector< CharType, BV, STR_SIZE >::begin(), bm::str_sparse_vector< CharType, BV, STR_SIZE >::calc_stat(), bm::str_sparse_vector< CharType, BV, STR_SIZE >::compare(), bm::str_sparse_vector< CharType, BV, STR_SIZE >::end(), bm::str_sparse_vector< CharType, BV, STR_SIZE >::back_insert_iterator::flush(), generate_string_set(), bm::str_sparse_vector< CharType, BV, STR_SIZE >::get_back_inserter(), bm::bv_statistics::memory_used, bm::str_sparse_vector< CharType, BV, STR_SIZE >::optimize(), bm::str_sparse_vector< CharType, BV, STR_SIZE >::remap(), and bm::str_sparse_vector< CharType, BV, STR_SIZE >::size().