set(const T& key, ValueT val) [Map template]

Replace an existing key-value pair in the map, or create a new one if key does not already exist.

Returns true if the operation succeeded or false, typically because there wasn't enough free memory to add the entry.

template<typename T>
bool set(const T& key, ValueT val);