MCPcopy Create free account
hub / github.com/FastLED/FastLED / find_value

Method find_value

src/fl/stl/unordered_map_lru.h:86–95  ·  view source on GitHub ↗

Get value for key, returns nullptr if not found

Source from the content-addressed store, hash-verified

84
85 // Get value for key, returns nullptr if not found
86 T *find_value(const Key &key) {
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 }
96
97 // Get value for key, returns nullptr if not found (const version)
98 const T *find_value(const Key &key) const {

Callers 9

atMethod · 0.80
writeMethod · 0.80
atMethod · 0.80
writeMethod · 0.80
get_or_createMethod · 0.80
insertMethod · 0.80
HashMapLruClass · 0.80
FL_TEST_FILEFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected