[#absl-linked_hash_set-insert-08]
= xref:absl.adoc[absl]::xref:absl/linked_hash_set.adoc[linked&lowbar;hash&lowbar;set]::insert
:relfileprefix: ../../
:mrdocs:

Inserts an element into the set using a position hint&period;

== Synopsis

Declared in `&lt;absl&sol;container&sol;linked&lowbar;hash&lowbar;set&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename K = xref:absl/linked_hash_set/key_type.adoc[key&lowbar;type]&gt;
requires !std&colon;&colon;is&lowbar;convertible&lowbar;v&lt;const key&lowbar;arg&lt;K&gt;&amp;, const&lowbar;iterator&gt; &amp;&amp;
                    !std&colon;&colon;is&lowbar;convertible&lowbar;v&lt;const key&lowbar;arg&lt;K&gt;&amp;, iterator&gt;
xref:absl/linked_hash_set/iterator.adoc[iterator]
insert(
    xref:absl/linked_hash_set/const_iterator.adoc[const&lowbar;iterator] hint,
    xref:absl/linked_hash_set.adoc[key&lowbar;arg&lt;K&gt;] const& k);
----

== Return Value

An iterator to the inserted or existing element&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *hint*
| An iterator hint for where to insert&period;
| *k*
| The element to insert&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
