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
50
evictOldest
();
51
}
52
mMaxSize
=
max_size
;
53
}
fl::HashMapLru::mMaxSize
fl::size mMaxSize
Definition
unordered_map_lru.h:171
fl::HashMapLru::evictOldest
void evictOldest()
Definition
unordered_map_lru.h:143
fl::HashMapLru
Definition
unordered_map_lru.h:22
fl
HashMapLru
Generated on Tue Jun 16 2026 00:07:05 for FastLED by
1.13.2