FastLED
3.10.8
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
336
of file
flat_map.h
.
336
{
337
// Erase range [first, last) by repeatedly erasing the element at first
338
fl::size
count
=
last
-
first
;
339
iterator
pos
=
const_cast<
iterator
>
(
first
);
340
341
for
(
fl::size
i
= 0;
i
<
count
&&
pos
!=
end
(); ++
i
) {
342
// Erase the element at pos. After erase, pos points to the next element
343
// (because all elements shift left)
344
mData
.erase(
pos
);
345
// Don't increment pos - it already points to the next element after erase
346
}
347
return
pos
;
348
}
fl::flat_map::iterator
typename vector_type::iterator iterator
Definition
flat_map.h:47
fl::flat_map::count
size_type count(const Key &key) const FL_NO_EXCEPT
Definition
flat_map.h:172
fl::flat_map::end
iterator end() FL_NO_EXCEPT
Definition
flat_map.h:86
fl::flat_map::mData
vector_type mData
Definition
flat_map.h:53
fl::flat_map
Definition
flat_map.h:31
fl
flat_map
Generated on Sun Oct 18 2026 00:57:06 for FastLED by
1.13.2