FastLED
3.10.8
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
541
of file
unordered_map.h
.
541
{
542
auto
idx
=
find_index
(
key
);
543
if
(
idx
==
npos
())
544
return
false
;
545
mark_deleted
(
idx
);
546
--
_size
;
547
++
_tombstones
;
548
return
true
;
549
}
fl::unordered_map::npos
static fl::size npos() FL_NO_EXCEPT
Definition
unordered_map.h:803
fl::unordered_map::_size
fl::size _size
Definition
unordered_map.h:1046
fl::unordered_map::mark_deleted
void mark_deleted(fl::size idx) FL_NO_EXCEPT
Definition
unordered_map.h:821
fl::unordered_map::_tombstones
fl::size _tombstones
Definition
unordered_map.h:1047
fl::unordered_map::find_index
fl::size find_index(const Key &key) const FL_NO_EXCEPT
Definition
unordered_map.h:881
fl::unordered_map
Definition
unordered_map.h:59
fl
unordered_map
Generated on Sun Oct 18 2026 00:57:09 for FastLED by
1.13.2