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

◆ operator[]() [1/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 }
fl::pair< Key, Value > PairKV
Definition map.h:26
VectorType::iterator iterator
Definition map.h:29
VectorType data
Definition map.h:270
iterator end()
Definition map.h:36
iterator find(const Key &key)
Definition map.h:40

References data, end(), and find().

+ Here is the call graph for this function: