FastLED
3.9.15
Loading...
Searching...
No Matches
◆
find_value()
[1/2]
template<typename
Key
, typename T, typename
Hash
= Hash<Key>, typename KeyEqual = EqualTo<Key>, int INLINED_COUNT = FASTLED_HASHMAP_INLINED_COUNT>
T *
fl::HashMapLru
<
Key
, T,
Hash
, KeyEqual, INLINED_COUNT >::find_value
(
const
Key
&
key
)
inline
Definition at line
86
of file
unordered_map_lru.h
.
86
{
87
ValueWithTimestamp
*
vwt
=
mMap
.find_value(
key
);
88
if
(
vwt
) {
89
// Update access time
90
auto
curr
=
mCurrentTime
++;
91
vwt
->last_access_time =
curr
;
92
return
&
vwt
->value;
93
}
94
return
nullptr
;
95
}
fl::HashMapLru::mMap
unordered_map< Key, ValueWithTimestamp, Hash, KeyEqual, INLINED_COUNT > mMap
Definition
unordered_map_lru.h:170
fl::HashMapLru::mCurrentTime
u32 mCurrentTime
Definition
unordered_map_lru.h:172
fl::HashMapLru
Definition
unordered_map_lru.h:22
fl::HashMapLru::ValueWithTimestamp
Definition
unordered_map_lru.h:25
fl
HashMapLru
Generated on Tue Jun 16 2026 00:07:05 for FastLED by
1.13.2