[#absl-linked_hash_map-try_emplace-06] = xref:absl.adoc[absl]::xref:absl/linked_hash_map.adoc[linked_hash_map]::try_emplace :relfileprefix: ../../ :mrdocs: Constructs an element in place if the key is not already present. == 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], typename... Args> std::pair<iterator, bool> try_emplace( xref:absl/linked_hash_map.adoc[key_arg<K>] const& key, Args&&... args); ---- == 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 | *key* | The key to insert or look up. | *args* | The arguments used to construct the mapped value. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#