FastLED 3.10.8
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 408 of file flat_map.h.

408 {
409 auto it = find(key);
410 if (it != end()) {
411 *out_value = it->second;
412 return true;
413 }
414 return false;
415 }
iterator find(const Key &key) FL_NO_EXCEPT
Definition flat_map.h:156
iterator end() FL_NO_EXCEPT
Definition flat_map.h:86