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
(
fl::size
size
,
fl::size
bucket_size
,
fl::size
tombstones
,
u8
load_factor
)
inline
static
Definition at line
219
of file
hash_map.h
.
220
{
221
// (size + tombstones) << 8 : multiply numerator by 256
222
// capacity * max_load : denominator * threshold
223
u32
lhs
= (
size
+
tombstones
) << 8;
224
u32
rhs
= (
bucket_size
*
load_factor
);
225
return
lhs
>
rhs
;
226
}
fl::HashMap::size
fl::size size() const
Definition
hash_map.h:401
fl::HashMap
Definition
hash_map.h:60
fl
HashMap
Generated on Fri Aug 22 2025 20:59:36 for FastLED by
1.13.2