48# define OHASH_COMMON(class_name) \
51 Hash_Fct get_hash_fct() const noexcept { return hash_fct; } \
55 Key * test_resize(Bucket * curr_bucket, const Key & key) \
57 if (not ((with_resize and this->current_alpha() >= upper_alpha))) \
58 return &curr_bucket->key; \
61 this->resize(Primes::next_prime(2*len)); \
63 Key * key_ptr = search(key_copy); \
64 assert(key_ptr != nullptr); \
65 assert(cmp(*key_ptr, key_copy)); \
70 static void update_stat_len(DynArray<size_t> & lens, size_t i) \
80 void set_hash_fct(Hash_Fct fct) noexcept \
85 void set_hash_fct(Hash_Fct_Ptr fct) noexcept \
87 hash_fct = Hash_Fct(fct); \
Standard functor implementations and comparison objects.
Main namespace for Aleph-w library functions.
const float hash_default_upper_alpha
const float hash_default_lower_alpha