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

◆ find() [2/2]

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

Definition at line 136 of file flat_map.h.

136 {
137 auto it = lower_bound(key);
138 if (it != end() && !mLess(key, it->first) && !mLess(it->first, key)) {
139 return it;
140 }
141 return end();
142 }
iterator lower_bound(const Key &key) FL_NOEXCEPT
Definition flat_map.h:166
iterator end() FL_NOEXCEPT
Definition flat_map.h:84

Referenced by fl::flat_map< int, FxPtr >::contains(), fl::flat_map< int, FxPtr >::count(), fl::flat_map< int, FxPtr >::erase(), fl::flat_map< int, FxPtr >::get(), fl::flat_map< int, FxPtr >::get(), fl::flat_map< int, FxPtr >::insert(), fl::flat_map< int, FxPtr >::insert(), fl::flat_map< int, FxPtr >::insert_or_update(), fl::flat_map< int, FxPtr >::next(), fl::flat_map< int, FxPtr >::operator[](), fl::flat_map< int, FxPtr >::prev(), setup(), fl::flat_map< int, FxPtr >::update(), and fl::flat_map< int, FxPtr >::update().

+ Here is the caller graph for this function: