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 111 of file map.h.

111 {
113 if (it != end()) {
114 if (has) {
115 *has = true;
116 }
117 return it->second;
118 }
119 if (has) {
120 *has = false;
121 }
122 return Value();
123 }
iterator end()
Definition map.h:36
bool has(const Key &it) const
Definition map.h:223
iterator find(const Key &key)
Definition map.h:40
VectorType::const_iterator const_iterator
Definition map.h:30