[#bsl-unordered_set-09-insert-01]
= 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 a pair whose `first` member is an iterator referring to the (possibly newly inserted) `value&lowbar;type` object in this set that is equivalent to `value`, and whose `second` member is `true` if a new value was inserted, and `false` if the key was already present&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class LOOKUP&lowbar;KEY&gt;
xref:bsl/pair-0b.adoc[pair&lt;iterator, bool&gt;]
insert(LOOKUP&lowbar;KEY&& value)
requires BloombergLP&colon;&colon;bslmf&colon;&colon;IsTransparentPredicate&lt;HASH, LOOKUP&lowbar;KEY&gt;&colon;&colon;value
        &amp;&amp; BloombergLP&colon;&colon;bslmf&colon;&colon;IsTransparentPredicate&lt;EQUAL,LOOKUP&lowbar;KEY&gt;&colon;&colon;value;
----

== Description

Note&colon; implemented inline due to Sun CC compilation error&period;


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