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 }
FASTLED_FORCE_INLINE T clamp(T value, T min, T max)
Definition clamp.h:10