FastLED 3.10.8
Loading...
Searching...
No Matches

◆ find() [1/2]

template<typename Key, typename Value, typename Less = fl::less<Key>>
const_iterator fl::flat_map< Key, Value, Less >::find ( const Key & key) const
inline

Definition at line 164 of file flat_map.h.

164 {
165 auto it = lower_bound(key);
166 if (it != end() && !mLess(key, it->first) && !mLess(it->first, key)) {
167 return it;
168 }
169 return end();
170 }
iterator lower_bound(const Key &key) FL_NO_EXCEPT
Definition flat_map.h:208
iterator end() FL_NO_EXCEPT
Definition flat_map.h:86