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

◆ get() [2/2]

template<typename Key, typename Value, typename Less = fl::less<Key>>
bool fl::flat_map< Key, Value, Less >::get ( const Key & key,
Value * out_value ) const
inline

Definition at line 422 of file flat_map.h.

422 {
423 auto it = find(key);
424 if (it != end()) {
425 *out_value = it->second;
426 return true;
427 }
428 return false;
429 }
iterator end() FL_NOEXCEPT
Definition flat_map.h:84
iterator find(const Key &key) FL_NOEXCEPT
Definition flat_map.h:136