FastLED
3.9.15
Loading...
Searching...
No Matches
◆
setLoadFactor()
template<typename
Key
, typename T, typename
Hash
= Hash<Key>, typename KeyEqual = EqualTo<Key>, int INLINED_COUNT = FASTLED_HASHMAP_INLINED_COUNT>
void
fl::HashMap
<
Key
, T,
Hash
, KeyEqual, INLINED_COUNT >::setLoadFactor
(
float
f
)
inline
Definition at line
72
of file
hash_map.h
.
72
{
73
f
=
fl::clamp
(
f
, 0.f, 1.f);
74
mLoadFactor
=
fl::map_range<float, u8>
(
f
, 0.f, 1.f, 0, 255);
75
}
fl::HashMap::mLoadFactor
u8 mLoadFactor
Definition
hash_map.h:704
fl::HashMap
Definition
hash_map.h:60
fl::clamp
FASTLED_FORCE_INLINE T clamp(T value, T min, T max)
Definition
clamp.h:10
fl
HashMap
Generated on Fri Aug 22 2025 20:59:36 for FastLED by
1.13.2