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

◆ operator[]()

template<typename Key, typename Value, typename Equal = fl::SmallMapEqualTo<Key>>
Value & fl::unordered_map_small< Key, Value, Equal >::operator[] ( const Key & key)
inline

Definition at line 247 of file unordered_map_small.h.

247 {
249 if (idx != npos()) return mData[idx].second;
250 // Insert default-constructed value
253 FASTLED_ASSERT(idx != npos(), "unordered_map_small::operator[]: insert failed");
254 return mData[idx].second;
255 }
size_type do_insert(const value_type &kv) FL_NO_EXCEPT
static size_type npos() FL_NO_EXCEPT
size_type find_index(const Key &key) const FL_NO_EXCEPT
fl::pair< Key, Value > value_type

References do_insert(), find_index(), fl::FL_NO_EXCEPT, mData, fl::adl_barrier::move(), and npos().

+ Here is the call graph for this function: