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

◆ update()

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

Definition at line 298 of file map.h.

298 {
299 if (!insert(key, value)) {
300 iterator it = find(key);
301 it->second = value;
302 }
303 }
SortedHeapVector< Pair, PairLess >::iterator iterator
Definition map.h:278
bool insert(const Key &key, const Value &value, InsertResult *result=nullptr)
Definition map.h:294
iterator find(const Key &key)
Definition map.h:351