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

◆ get() [1/2]

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

Definition at line 399 of file flat_map.h.

399 {
400 auto it = find(key);
401 if (it != end()) {
402 return it->second;
403 }
404 return defaultValue;
405 }
iterator find(const Key &key) FL_NO_EXCEPT
Definition flat_map.h:156
iterator end() FL_NO_EXCEPT
Definition flat_map.h:86