FastLED
3.10.8
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
)
inline
static
Definition at line
309
of file
unordered_map.h
.
310
{
311
// (size + tombstones) << 8 : multiply numerator by 256
312
// capacity * max_load : denominator * threshold
313
u32
lhs
= (
size
+
tombstones
) << 8;
314
u32
rhs
= (
bucket_size
*
load_factor
);
315
return
lhs
>
rhs
;
316
}
fl::unordered_map::size
fl::size size() const FL_NO_EXCEPT
Definition
unordered_map.h:728
fl::unordered_map::load_factor
float load_factor() const FL_NO_EXCEPT
Definition
unordered_map.h:748
fl::unordered_map
Definition
unordered_map.h:59
fl
unordered_map
Generated on Sun Oct 18 2026 00:57:09 for FastLED by
1.13.2