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

◆ insert_or_update()

template<typename Key, typename Value, typename Equal = fl::SmallMapEqualTo<Key>>
fl::pair< iterator, bool > fl::unordered_map_small< Key, Value, Equal >::insert_or_update ( const Key & key,
const Value & value )
inline

Definition at line 425 of file unordered_map_small.h.

425 {
427 if (idx != npos()) {
428 mData[idx].second = value;
429 return fl::pair<iterator, bool>(iterator(this, idx), false);
430 }
432 return fl::pair<iterator, bool>(iterator(this, idx), true);
433 }
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, npos(), and fl::type_rank< T >::value.

+ Here is the call graph for this function: