Inserts the given key/value, or assigns the value if the key exists.
Declared in <absl/container/linked_hash_map.h>
template<
class K = key_type,
class V = mapped_type,
V* = nullptr>
std::pair<iterator, bool>
insert_or_assign(
key_arg<K> const& k,
V&& v);
A pair of an iterator to the element and a bool that is true if insertion took place.
| Name | Description |
|---|---|
| k | The key to insert or look up. |
| v | The value to assign. |