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

◆ operator[]() [1/2]

template<typename Key, typename Value, size_t N>
Value & fl::FixedMap< Key, Value, N >::operator[] ( const Key & key)
inline

Definition at line 162 of file map.h.

162 {
163 iterator it = find(key);
164 if (it != end()) {
165 return it->second;
166 }
167 data.push_back(PairKV(key, Value()));
168 return data.back().second;
169 }
VectorType::iterator iterator
Definition map.h:29
iterator end()
Definition map.h:36
VectorType data
Definition map.h:228
iterator find(const Key &key)
Definition map.h:40
fl::Pair< Key, Value > PairKV
Definition map.h:26