FastLED
3.9.15
Loading...
Searching...
No Matches
◆
erase()
[2/2]
template<typename
Key
, typename T, typename
Hash
= Hash<Key>, typename KeyEqual = EqualTo<Key>, int INLINED_COUNT = FASTLED_HASHMAP_INLINED_COUNT>
iterator
fl::HashMap
<
Key
, T,
Hash
, KeyEqual, INLINED_COUNT >::erase
(
iterator
it
)
inline
Definition at line
305
of file
hash_map.h
.
305
{
306
if
(
it
==
end
() ||
it
._map !=
this
) {
307
return
end
();
// Invalid iterator
308
}
309
310
// Mark the current position as deleted
311
mark_deleted
(
it
._idx);
312
--
_size
;
313
++
_tombstones
;
314
315
// Advance to next valid element and return iterator to it
316
++
it
._idx;
317
it
.advance_to_occupied();
318
return
it
;
319
}
fl::HashMap::_size
fl::size _size
Definition
hash_map.h:702
fl::HashMap::end
iterator end()
Definition
hash_map.h:211
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