ivutils
Loading...
Searching...
No Matches
container_set< T, cont_t, comp_pr > Class Template Reference

container which stores only unique values (or group of values) of some type T by function inset_ind (insert_group). More...

#include <seqpack.h>

Inheritance diagram for container_set< T, cont_t, comp_pr >:

Public Member Functions

std::size_t insert_ind (iterator it, const T &elm)
 returns the number of elements between begin and the inserted element
 
std::size_t insert_ind (const T &elm)
 the same with default starting
 

Detailed Description

template<class T, class cont_t = std::vector<T>, class comp_pr = std::equal_to<T>>
class container_set< T, cont_t, comp_pr >

container which stores only unique values (or group of values) of some type T by function inset_ind (insert_group).

if value is unique, it will be stored in container, otherwise it will not. function insert_ind (insert_group) returns index stored data in container. cointainer type could be vector or list. equality of items is checked by comparison prediacate of type comp_pr which must have bool opertor()(const T&,const T&) returning true for duplicated items. cointainer_set is used as a container for stored data in data_pack


The documentation for this class was generated from the following file: