[#absl-linked_hash_set-insert-0e] = xref:absl.adoc[absl]::xref:absl/linked_hash_set.adoc[linked_hash_set]::insert :relfileprefix: ../../ :mrdocs: Inserts an element into the set using a position hint. == Synopsis Declared in `<absl/container/linked_hash_set.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename K = xref:absl/linked_hash_set/key_type.adoc[key_type], K* = nullptr> requires !std::is_convertible_v<key_arg<K>&&, const_iterator> && !std::is_convertible_v<key_arg<K>&&, iterator> xref:absl/linked_hash_set/iterator.adoc[iterator] insert( xref:absl/linked_hash_set/const_iterator.adoc[const_iterator] hint, xref:absl/linked_hash_set.adoc[key_arg<K>]&& k); ---- == Return Value An iterator to the inserted or existing element. == Parameters [cols="1,4"] |=== | Name| Description | *hint* | An iterator hint for where to insert. | *k* | The element to insert. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#