FastLED 3.9.15
Loading...
Searching...
No Matches

◆ erase() [2/4]

template<typename Key, typename Value, typename Compare = less<Key>, typename Allocator = allocator<fl::pair<Key, Value>>>
iterator fl::MultiMapTree< Key, Value, Compare, Allocator >::erase ( const_iterator first,
const_iterator last )
inline

Definition at line 374 of file multi_map.h.

374 {
375 // Erase each element in the range [first, last)
376 iterator result = begin(); // Default return
377
378 while (first != last) {
379 result = erase(first); // erase(const_iterator pos) returns iterator to next element
380 // Update first to point to the next element (which is now at the erased position)
382 }
383
384 return result;
385 }
iterator erase(iterator pos)
Definition multi_map.h:352
IteratorWrapper iterator
Definition multi_map.h:255
iterator begin()
Definition multi_map.h:294