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

◆ insert() [2/4]

template<typename Key, typename Value, typename Equal = fl::SmallMapEqualTo<Key>>
fl::pair< iterator, bool > fl::unordered_map_small< Key, Value, Equal >::insert ( const value_type & kv)
inline

Definition at line 291 of file unordered_map_small.h.

291 {
292 size_type idx = find_index(kv.first);
293 if (idx != npos()) {
294 return fl::pair<iterator, bool>(iterator(this, idx), false);
295 }
296 idx = do_insert(kv);
297 return fl::pair<iterator, bool>(iterator(this, idx), true);
298 }
size_type do_insert(const value_type &kv) FL_NOEXCEPT
static size_type npos() FL_NOEXCEPT
size_type find_index(const Key &key) const FL_NOEXCEPT

References do_insert(), find_index(), FL_NOEXCEPT, and npos().

Referenced by emplace().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: