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

◆ update() [1/2]

template<typename Key, typename Value, typename Less = fl::less<Key>>
void fl::SortedHeapMap< Key, Value, Less >::update ( const Key & key,
const Value & value )
inline

Definition at line 483 of file map.h.

483 {
484 if (!insert(key, value)) {
485 iterator it = find(key);
486 it->second = value;
487 }
488 }
fl::pair< iterator, bool > insert(const value_type &value)
Definition map.h:360
SortedHeapVector< value_type, PairLess >::iterator iterator
Definition map.h:306
iterator find(const Key &key)
Definition map.h:416