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::HashMap< Key, T, Hash, KeyEqual, INLINED_COUNT >::remove ( const Key & key)
inline

Definition at line 229 of file hash_map.h.

229 {
230 auto idx = find_index(key);
231 if (idx == npos)
232 return false;
234 --_size;
235 ++_tombstones;
236 return true;
237 }
size_t _size
Definition hash_map.h:577
void mark_deleted(size_t idx)
Definition hash_map.h:307
static constexpr size_t npos
Definition hash_map.h:291
size_t find_index(const Key &key) const
Definition hash_map.h:391
size_t _tombstones
Definition hash_map.h:578

Referenced by fl::HashMap< Key, T, Hash, KeyEqual >::erase().

+ Here is the caller graph for this function: