libcuckoo  0.3.1
Macros | Variables
cuckoohash_config.hh File Reference
#include <cstddef>
#include <limits>
Include dependency graph for cuckoohash_config.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LIBCUCKOO_DEBUG   0
 set LIBCUCKOO_DEBUG to 1 to enable debug output
 

Variables

constexpr size_t libcuckoo::DEFAULT_SLOT_PER_BUCKET = 4
 The default maximum number of keys per bucket.
 
constexpr size_t libcuckoo::DEFAULT_SIZE
 The default number of elements in an empty hash table. More...
 
constexpr double libcuckoo::DEFAULT_MINIMUM_LOAD_FACTOR = 0.05
 
constexpr size_t libcuckoo::NO_MAXIMUM_HASHPOWER
 

Variable Documentation

◆ DEFAULT_MINIMUM_LOAD_FACTOR

constexpr double libcuckoo::DEFAULT_MINIMUM_LOAD_FACTOR = 0.05
constexpr

The default minimum load factor that the table allows for automatic expansion. It must be a number between 0.0 and 1.0. The table will throw load_factor_too_low if the load factor falls below this value during an automatic expansion.

◆ DEFAULT_SIZE

constexpr size_t libcuckoo::DEFAULT_SIZE
constexpr
Initial value:
=
(1U << 16) * DEFAULT_SLOT_PER_BUCKET

The default number of elements in an empty hash table.

◆ NO_MAXIMUM_HASHPOWER

constexpr size_t libcuckoo::NO_MAXIMUM_HASHPOWER
constexpr
Initial value:
=
std::numeric_limits<size_t>::max()

An alias for the value that sets no limit on the maximum hashpower. If this value is set as the maximum hashpower limit, there will be no limit. This is also the default initial value for the maximum hashpower in a table.