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
;
546
mark_deleted
(
idx
);
547
--
_size
;
548
++
_tombstones
;
549
return
true
;
550
}
fl::unordered_map::find_index
fl::size find_index(const Key &key) const
Definition
unordered_map.h:907
fl::unordered_map::npos
static fl::size npos()
Definition
unordered_map.h:804
fl::unordered_map::mark_deleted
void mark_deleted(fl::size idx)
Definition
unordered_map.h:822
fl::unordered_map::_size
fl::size _size
Definition
unordered_map.h:1118
fl::unordered_map::_tombstones
fl::size _tombstones
Definition
unordered_map.h:1119
fl::unordered_map
Definition
unordered_map.h:58
fl
unordered_map
Generated on Tue Jun 16 2026 00:07:07 for FastLED by
1.13.2