[#bsl-unordered_set-09-insert-0e]
= xref:bsl.adoc[bsl]::xref:bsl/unordered_set-09.adoc[unordered&lowbar;set&lt;Attribute, AttributeHash&gt;]::insert
:relfileprefix: ../../
:mrdocs:

Insert the specified `value` into this set if a key equivalent to `value` does not already exist in this set&semi; otherwise, if a key equivalent to `value` already exists in this set, this method has no effect&period; `value` is left in a valid but unspecified state&period; Return an iterator referring to the (possibly newly inserted) `value&lowbar;type` object in this set that is equivalent to `value`&period; The average and worst case complexity of this operation is not affected by the specified `hint`&period; This method requires that the (template parameter) type `KEY` be `move&hyphen;insertable` (see &lcub;Requirements on `KEY`&rcub;) into this set&period; The behavior is undefined unless `hint` is an iterator in the range `&lsqb;begin() &period;&period; end()&rsqb;` (both endpoints included)&period; Note that `hint` is ignored (other than possibly asserting its validity in some build modes)&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;unorderedset&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_set-09/iterator.adoc[iterator]
insert(
    xref:bsl/unordered_set-09/const_iterator.adoc[const&lowbar;iterator] hint,
    xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;value&lowbar;type&gt;] value);
----


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