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

◆ operator[]() [1/2]

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

Definition at line 198 of file map.h.

198 {
199 iterator it = find(key);
200 if (it != end()) {
201 return it->second;
202 }
203 data.push_back(PairKV(key, Value()));
204 return data.back().second;
205 }
VectorType::iterator iterator
Definition map.h:29
iterator end()
Definition map.h:36
VectorType data
Definition map.h:264
fl::pair< Key, Value > PairKV
Definition map.h:26
iterator find(const Key &key)
Definition map.h:40