FastLED 3.9.15
Loading...
Searching...
No Matches

◆ get() [1/2]

template<typename Key, typename Value, size_t N>
Value fl::FixedMap< Key, Value, N >::get ( const Key & key,
bool * has = nullptr ) const
inline

Definition at line 127 of file map.h.

127 {
129 if (it != end()) {
130 if (has) {
131 *has = true;
132 }
133 return it->second;
134 }
135 if (has) {
136 *has = false;
137 }
138 return Value();
139 }
iterator end()
Definition map.h:44
bool has(const Key &it) const
Definition map.h:244
iterator find(const Key &key)
Definition map.h:54
VectorType::const_iterator const_iterator
Definition map.h:35