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

◆ count()

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

Definition at line 393 of file multi_map.h.

393 {
394 auto range = equal_range(key);
395 fl::size count = 0;
396 for (auto it = range.first; it != range.second; ++it) {
397 ++count;
398 }
399 return count;
400 }
fl::size count(const Key &key) const
Definition multi_map.h:393
fl::pair< iterator, iterator > equal_range(const Key &key)
Definition multi_map.h:425