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

◆ erase() [1/4]

template<typename Key, typename Value, typename Compare = less<Key>, typename Allocator = allocator<fl::pair<Key, Value>>>
fl::size fl::MultiMapTree< Key, Value, Compare, Allocator >::erase ( const Key & key)
inline

Definition at line 362 of file multi_map.h.

362 {
363 auto range = equal_range(key);
364 fl::size count = 0;
365 auto it = range.first;
366 while (it != range.second) {
367 it = erase(it);
368 ++count;
369 }
370 return count;
371 }
fl::size count(const Key &key) const
Definition multi_map.h:393
iterator erase(iterator pos)
Definition multi_map.h:352
fl::pair< iterator, iterator > equal_range(const Key &key)
Definition multi_map.h:425