FastLED 3.10.8
Loading...
Searching...
No Matches

◆ operator[]() [2/2]

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

Definition at line 194 of file map.h.

194 {
195 iterator it = find(key);
196 if (it != end()) {
197 return it->second;
198 }
199 data.push_back(PairKV(key, Value()));
200 return data.back().second;
201 }
iterator find(const Key &key) FL_NO_EXCEPT
Definition map.h:40
fl::pair< Key, Value > PairKV
Definition map.h:26
VectorType::iterator iterator
Definition map.h:29
VectorType data
Definition map.h:270
iterator end() FL_NO_EXCEPT
Definition map.h:36

References data, end(), find(), and fl::FL_NO_EXCEPT.

+ Here is the call graph for this function: