FastLED 3.9.15
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_NOEXCEPT
static size_type npos() FL_NOEXCEPT
fl::pair< Key, Value > value_type
size_type find_index(const Key &key) const FL_NOEXCEPT

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

+ Here is the call graph for this function: