[#BloombergLP-bdlc-FlatHashSet-insert-068]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet]::insert
:relfileprefix: ../../../
:mrdocs:

Insert the specified `value` into this set if not already present&period;

== Synopsis

Declared in `&lt;bdlc&lowbar;flathashset&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/pair-0b.adoc[bsl::pair&lt;const&lowbar;iterator, bool&gt;]
insert(KEY const& value);
----

== Description

Insert the specified `value` into this set if the `value` does not already exist in this set&semi; otherwise, this method has no effect&period; Return a `pair` whose `first` member is a `const&lowbar;iterator` referring to the (possibly newly inserted) element in this set whose value is equivalent to that of the element to be inserted, and whose `second` member is `true` if a new element was inserted, and `false` if an equivalent value was already present&period;

== Return Value

pair of iterator to the element and whether insertion occurred

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| element to insert
|===


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