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

◆ find() [1/2]

template<typename Key, typename Less = fl::less<Key>>
iterator fl::flat_set< Key, Less >::find ( const Key & key)
inline

Definition at line 94 of file flat_set.h.

94 {
95 auto it = lower_bound(key);
96 if (it != end() && !mLess(key, *it) && !mLess(*it, key)) {
97 return it;
98 }
99 return end();
100 }
iterator end()
Definition flat_set.h:76
iterator lower_bound(const Key &key)
Definition flat_set.h:119

References end(), lower_bound(), and mLess.

Referenced by contains(), count(), erase(), insert(), and insert().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: