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

◆ find() [2/2]

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

Definition at line 301 of file multi_set.h.

301 {
303 auto it = mTree.lower_bound(search_key);
304 if (it != mTree.end() && it->value == key) {
305 return const_iterator(it);
306 }
307 return end();
308 }
TreeType mTree
Definition multi_set.h:72
iterator end()
Definition multi_set.h:192
ConstIteratorWrapper const_iterator
Definition multi_set.h:162