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

413 {
414 auto it = find(key);
415 if (it != end()) {
416 return it->second;
417 }
418 return defaultValue;
419 }
iterator end() FL_NOEXCEPT
Definition flat_map.h:84
iterator find(const Key &key) FL_NOEXCEPT
Definition flat_map.h:136