[#absl-linked_hash_map-insert_or_assign-03] = 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, ignoring the position hint. == 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]> xref:absl/linked_hash_map/iterator.adoc[iterator] insert_or_assign( xref:absl/linked_hash_map/const_iterator.adoc[const_iterator] hint, xref:absl/linked_hash_map.adoc[key_arg<K>] const& k, V const& v); ---- == Return Value An iterator to the inserted or updated element. == Parameters [cols="1,4"] |=== | Name| Description | *k* | The key to insert or look up. | *v* | The value to assign. | *hint* | A position hint, which is ignored. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#