[#bsl-unordered_set-09-insert-01] = xref:bsl.adoc[bsl]::xref:bsl/unordered_set-09.adoc[unordered_set<Attribute, AttributeHash>]::insert :relfileprefix: ../../ :mrdocs: Insert the specified `value` into this set if a key equivalent to `value` does not already exist in this set; otherwise, if a key equivalent to `value` already exists in this set, this method has no effect. `value` is left in a valid but unspecified state. Return a pair whose `first` member is an iterator referring to the (possibly newly inserted) `value_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. == Synopsis Declared in `<bslstl_unorderedset.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class LOOKUP_KEY> xref:bsl/pair-0b.adoc[pair<iterator, bool>] insert(LOOKUP_KEY&& value) requires BloombergLP::bslmf::IsTransparentPredicate<HASH, LOOKUP_KEY>::value && BloombergLP::bslmf::IsTransparentPredicate<EQUAL,LOOKUP_KEY>::value; ---- == Description Note: implemented inline due to Sun CC compilation error. [.small]#Created with https://www.mrdocs.com[MrDocs]#