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
292
of file
hash_map.h
.
292
{
293
auto
idx
=
find_index
(
key
);
294
if
(
idx
==
npos
())
295
return
false
;
296
mark_deleted
(
idx
);
297
--
_size
;
298
++
_tombstones
;
299
return
true
;
300
}
fl::HashMap::_size
fl::size _size
Definition
hash_map.h:702
fl::HashMap::npos
static fl::size npos()
Definition
hash_map.h:408
fl::HashMap::find_index
fl::size find_index(const Key &key) const
Definition
hash_map.h:510
fl::HashMap::mark_deleted
void mark_deleted(fl::size idx)
Definition
hash_map.h:426
fl::HashMap::_tombstones
fl::size _tombstones
Definition
hash_map.h:703
fl::HashMap
Definition
hash_map.h:60
fl
HashMap
Generated on Fri Aug 22 2025 20:59:36 for FastLED by
1.13.2