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

Method get

src/fl/stl/map.h:102–109  ·  view source on GitHub ↗

We differ from the std standard here so that we don't allow dereferencing the end iterator.

Source from the content-addressed store, hash-verified

100 // We differ from the std standard here so that we don't allow
101 // dereferencing the end iterator.
102 bool get(const Key &key, Value *value) const {
103 const_iterator it = find(key);
104 if (it != end()) {
105 *value = it->second;
106 return true;
107 }
108 return false;
109 }
110
111 Value get(const Key &key, bool *has = nullptr) const {
112 const_iterator it = find(key);

Callers

nothing calls this directly

Calls 3

ValueEnum · 0.85
findFunction · 0.70
endFunction · 0.70

Tested by

no test coverage detected