[#absl-linked_hash_map-insert_or_assign-02] = xref:absl.adoc[absl]::xref:absl/linked_hash_map.adoc[linked_hash_map]::insert_or_assign :relfileprefix: ../../ :mrdocs: Inserts the given key/value, or assigns the value if the key exists. == Synopsis Declared in `<absl/container/linked_hash_map.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class K = xref:absl/linked_hash_map/key_type.adoc[key_type], class V = xref:absl/linked_hash_map/mapped_type.adoc[mapped_type], K* = nullptr, V* = nullptr> std::pair<iterator, bool> insert_or_assign( xref:absl/linked_hash_map.adoc[key_arg<K>]&& k, V&& v); ---- == Return Value A pair of an iterator to the element and a bool that is `true` if insertion took place. == Parameters [cols="1,4"] |=== | Name| Description | *k* | The key to insert or look up. | *v* | The value to assign. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#