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

◆ insert() [3/4]

template<typename Key, typename Value, typename Equal = fl::SmallMapEqualTo<Key>>
bool fl::unordered_map_small< Key, Value, Equal >::insert ( Key && key,
Value && value,
insert_result * result = nullptr )
inline

Definition at line 320 of file unordered_map_small.h.

320 {
321 Key key_copy = key;
323 if (idx != npos()) {
324 if (result) *result = exists;
325 return false;
326 }
328 if (result) *result = inserted;
329 return true;
330 }
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(), exists, find_index(), FL_NOEXCEPT, inserted, fl::fl::move(), npos(), and fl::type_rank< T >::value.

+ Here is the call graph for this function: