FastLED 3.9.15
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 542 of file unordered_map.h.

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