FastLED 3.9.15
Loading...
Searching...
No Matches

◆ setMaxSize()

template<typename Key, typename T, typename Hash = Hash<Key>, typename KeyEqual = EqualTo<Key>, int INLINED_COUNT = FASTLED_HASHMAP_INLINED_COUNT>
void fl::HashMapLru< Key, T, Hash, KeyEqual, INLINED_COUNT >::setMaxSize ( fl::size max_size)
inline

Definition at line 47 of file unordered_map_lru.h.

47 {
48 while (mMaxSize < max_size) {
49 // Evict oldest items until we reach the new max size
51 }
53 }