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

176 {
177 iterator it = find(key);
178 if (it != end()) {
179 return it->second;
180 }
181 data.push_back(PairKV(key, Value()));
182 return data.back().second;
183 }
VectorType::iterator iterator
Definition map.h:34
iterator end()
Definition map.h:44
VectorType data
Definition map.h:252
iterator find(const Key &key)
Definition map.h:54
fl::Pair< Key, Value > PairKV
Definition map.h:31