FastLED 3.10.9
Loading...
Searching...
No Matches

◆ remove()

template<typename Key, typename T, typename Hash = Hash<Key>, typename KeyEqual = EqualTo<Key>, int INLINED_COUNT = FASTLED_HASHMAP_INLINED_COUNT>
bool fl::unordered_map< Key, T, Hash, KeyEqual, INLINED_COUNT >::remove ( const Key & key)
inline

Definition at line 543 of file unordered_map.h.

543 {
544 auto idx = find_index(key);
545 if (idx == npos())
546 return false;
548 --_size;
549 ++_tombstones;
550 return true;
551 }
static fl::size npos() FL_NO_EXCEPT
void mark_deleted(fl::size idx) FL_NO_EXCEPT
fl::size find_index(const Key &key) const FL_NO_EXCEPT