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::unordered_map< Key, T, Hash, KeyEqual, INLINED_COUNT >::NeedsRehash ( fl::size size,
fl::size bucket_size,
fl::size tombstones,
u8 load_factor )
inlinestatic

Definition at line 308 of file unordered_map.h.

309 {
310 // (size + tombstones) << 8 : multiply numerator by 256
311 // capacity * max_load : denominator * threshold
312 u32 lhs = (size + tombstones) << 8;
314 return lhs > rhs;
315 }
float load_factor() const
fl::size size() const