Inserts the given key/value, or assigns the value if the key exists, ignoring the position hint.
Declared in <absl/container/linked_hash_map.h>
template<
class K = key_type,
class V = mapped_type>
iterator
insert_or_assign(
const_iterator hint,
key_arg<K> const& k,
V const& v);
An iterator to the inserted or updated element.
| Name | Description |
|---|---|
| k | The key to insert or look up. |
| v | The value to assign. |
| hint | A position hint, which is ignored. |