FastLED
3.9.15
Loading...
Searching...
No Matches
◆
erase()
[2/4]
template<typename
Key
, typename Value, typename Less = fl::less<Key>>
iterator
fl::flat_map
<
Key
, Value, Less >::erase
(
const_iterator
first
,
const_iterator
last
)
inline
Definition at line
350
of file
flat_map.h
.
350
{
351
// Erase range [first, last) by repeatedly erasing the element at first
352
fl::size
count
=
last
-
first
;
353
iterator
pos
=
const_cast<
iterator
>
(
first
);
354
355
for
(
fl::size
i
= 0;
i
<
count
&&
pos
!=
end
(); ++
i
) {
356
// Erase the element at pos. After erase, pos points to the next element
357
// (because all elements shift left)
358
mData
.erase(
pos
);
359
// Don't increment pos - it already points to the next element after erase
360
}
361
return
pos
;
362
}
fl::flat_map::iterator
typename vector_type::iterator iterator
Definition
flat_map.h:45
fl::flat_map::count
size_type count(const Key &key) const FL_NOEXCEPT
Definition
flat_map.h:152
fl::flat_map::end
iterator end() FL_NOEXCEPT
Definition
flat_map.h:84
fl::flat_map::mData
vector_type mData
Definition
flat_map.h:51
fl::flat_map
Definition
flat_map.h:29
fl
flat_map
Generated on Tue Jun 16 2026 00:07:05 for FastLED by
1.13.2