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

◆ count()

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

Definition at line 283 of file multi_set.h.

283 {
284 auto range = equal_range(key);
285 fl::size count = 0;
286 for (auto it = range.first; it != range.second; ++it) {
287 ++count;
288 }
289 return count;
290 }
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