ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::CuckooHashTable< K, V, H, A >::Places Struct Reference

the places and the stash, for SlotIterator More...

#include <ADS/dictionary/CuckooHashing.h>

Static public member functions

static std::size_t size (const auto &o)
 the number of places, the stash included
static bool occupied (const auto &o, std::size_t i)
 whether the place \( i \) holds a key
static auto read (const auto &o, std::size_t i)
 the pair of the place \( i \)

Detailed description

template<class K, class V, class H = std::hash< K >, class A = std::allocator< std::pair< const K , V > >>
struct ADS::CuckooHashTable< K, V, H, A >::Places

the places and the stash, for SlotIterator

Member function documentation

◆ occupied()

template<class K, class V, class H = std::hash< K >, class A = std::allocator< std::pair< const K , V > >>
bool ADS::CuckooHashTable< K, V, H, A >::Places::occupied ( const auto & o,
std::size_t i )
inlinestatic

whether the place \( i \) holds a key

◆ read()

template<class K, class V, class H = std::hash< K >, class A = std::allocator< std::pair< const K , V > >>
auto ADS::CuckooHashTable< K, V, H, A >::Places::read ( const auto & o,
std::size_t i )
inlinestatic

the pair of the place \( i \)

◆ size()

template<class K, class V, class H = std::hash< K >, class A = std::allocator< std::pair< const K , V > >>
std::size_t ADS::CuckooHashTable< K, V, H, A >::Places::size ( const auto & o)
inlinestatic

the number of places, the stash included


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