FastLED 3.10.8
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_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, npos(), and fl::type_rank< T >::value.

+ Here is the call graph for this function: