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