FastLED 3.9.15
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 144 of file flat_map.h.

144 {
145 auto it = lower_bound(key);
146 if (it != end() && !mLess(key, it->first) && !mLess(it->first, key)) {
147 return it;
148 }
149 return end();
150 }
iterator lower_bound(const Key &key) FL_NOEXCEPT
Definition flat_map.h:166
iterator end() FL_NOEXCEPT
Definition flat_map.h:84