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

the places, for SlotIterator More...

#include <ADS/dictionary/BucketCuckooTable.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, i.e., its tag is not 0, or its place of the stash is not a hole
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 = DefaultHash< K >, class Eq = std::equal_to< K >, class A = std::allocator< std::pair< const K , V > >>
struct ADS::BucketCuckooTable< K, V, H, Eq, A >::Places

the places, for SlotIterator

Member function documentation

◆ occupied()

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

whether the place \( i \) holds a key, i.e., its tag is not 0, or its place of the stash is not a hole

◆ read()

template<class K, class V, class H = DefaultHash< K >, class Eq = std::equal_to< K >, class A = std::allocator< std::pair< const K , V > >>
auto ADS::BucketCuckooTable< K, V, H, Eq, 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 = DefaultHash< K >, class Eq = std::equal_to< K >, class A = std::allocator< std::pair< const K , V > >>
std::size_t ADS::BucketCuckooTable< K, V, H, Eq, 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: