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 ( size_t max_size)
inline

Definition at line 36 of file hash_map_lru.h.

36 {
37 while (mMaxSize < max_size) {
38 // Evict oldest items until we reach the new max size
40 }
42 }

References evictOldest(), and mMaxSize.

+ Here is the call graph for this function: