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 270 of file map.h.

270 {
271 if (!insert(key, value)) {
272 iterator it = find(key);
273 it->second = value;
274 }
275 }
SortedHeapVector< Pair, PairLess >::iterator iterator
Definition map.h:254
bool insert(const Key &key, const Value &value, InsertResult *result=nullptr)
Definition map.h:265
iterator find(const Key &key)
Definition map.h:328