emilib
Public Types | Public Member Functions | List of all members
emilib::ListSet< KeyT, EqT > Class Template Reference

Linear lookup set for quick lookups among few values. More...

#include <list_set.hpp>

Public Types

using List = std::vector< KeyT >
 
using size_type = size_t
 
using value_type = KeyT
 
using reference = KeyT &
 
using const_reference = const KeyT &
 
using iterator = typename List::iterator
 
using const_iterator = typename List::const_iterator
 

Public Member Functions

iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
size_t size () const
 
bool empty () const
 
int count (const KeyT &key) const
 
bool insert (const KeyT &key)
 
void shrink_to_fit ()
 Frees unnecessary memory.
 
void clear ()
 

Detailed Description

template<typename KeyT, typename EqT = ListSetEqualTo<KeyT>>
class emilib::ListSet< KeyT, EqT >

Linear lookup set for quick lookups among few values.


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