emilib
Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
emilib::HashSetRH< KeyT, HasherT, EqT > Class Template Reference

Classes

class  const_iterator
 
class  iterator
 

Public Types

using size_type = size_t
 
using value_type = KeyT
 
using reference = KeyT &
 
using const_reference = const KeyT &
 
using HashCode = size_t
 

Public Member Functions

 HashSetRH (const HashSetRH &other)
 
 HashSetRH (HashSetRH &&other)
 
HashSetRHoperator= (const HashSetRH &other)
 
void operator= (HashSetRH &&other)
 
void swap (HashSetRH &other)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
size_t size () const
 
bool empty () const
 
size_t bucket_count () const
 
iterator find (const KeyT &key)
 
const_iterator find (const KeyT &key) const
 
bool contains (const KeyT &k) const
 
size_t count (const KeyT &k) const
 
std::pair< iterator, bool > insert (KeyT key)
 
template<class... Args>
std::pair< iterator, bool > emplace (Args &&... args)
 
void insert (const_iterator begin, const_iterator end)
 
void insert_unique (KeyT key)
 
bool erase (const KeyT &key)
 
iterator erase (iterator it)
 
void clear ()
 
void reserve (size_t num_elems)
 

Static Public Attributes

static const size_t kMaxLoadFactorPercent = 90
 
static const HashCode kUnusedHashCode = 0
 
static const HashCode kTombStoneFlag = HashCode(1) << HashCode(8 * sizeof(HashCode) - 1)
 

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