FastLED 3.9.15
Loading...
Searching...
No Matches

◆ NeedsRehash()

template<typename Key, typename T, typename Hash = Hash<Key>, typename KeyEqual = EqualTo<Key>, int INLINED_COUNT = FASTLED_HASHMAP_INLINED_COUNT>
static bool fl::HashMap< Key, T, Hash, KeyEqual, INLINED_COUNT >::NeedsRehash ( size_t size,
size_t bucket_size,
size_t tombstones,
uint8_t load_factor )
inlinestatic

Definition at line 185 of file hash_map.h.

186 {
187 // (size + tombstones) << 8 : multiply numerator by 256
188 // capacity * max_load : denominator * threshold
189 uint32_t lhs = (size + tombstones) << 8;
191 return lhs > rhs;
192 }
size_t size() const
Definition hash_map.h:286

Referenced by fl::HashMap< Key, T, Hash, KeyEqual >::needs_rehash().

+ Here is the caller graph for this function: