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

◆ find() [2/2]

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

Definition at line 411 of file multi_map.h.

411 {
413 auto it = mTree.lower_bound(search_key);
414 if (it != mTree.end() && it->value.first == key) {
415 return const_iterator(it);
416 }
417 return end();
418 }
fl::pair< Key, Value > value_type
Definition multi_map.h:25
TreeType mTree
Definition multi_map.h:75
ConstIteratorWrapper const_iterator
Definition multi_map.h:256
iterator end()
Definition multi_map.h:297