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

◆ erase() [1/3]

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

Definition at line 252 of file multi_set.h.

252 {
253 auto range = equal_range(key);
254 fl::size count = 0;
255 auto it = range.first;
256 while (it != range.second) {
257 it = erase(it);
258 ++count;
259 }
260 return count;
261 }
iterator erase(const_iterator pos)
Definition multi_set.h:247
fl::size count(const Key &key) const
Definition multi_set.h:283
fl::pair< iterator, iterator > equal_range(const Key &key)
Definition multi_set.h:315