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 }
unordered_map< Key, ValueWithTimestamp, Hash, KeyEqual, INLINED_COUNT > mMap