[#BloombergLP-bdlc-FlatHashMap-insert-03]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap]::insert
:relfileprefix: ../../../
:mrdocs:

Insert `value` if its key is not already present&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class VALUE&lowbar;TYPE&gt;
xref:BloombergLP/bdlc/FlatHashMap/iterator.adoc[iterator]
insert(
    xref:BloombergLP/bdlc/FlatHashMap/const_iterator.adoc[const&lowbar;iterator] hint,
    VALUE&lowbar;TYPE&& value)
requires bsl&colon;&colon;is&lowbar;constructible&lt;value&lowbar;type,
                                                  VALUE&lowbar;TYPE&amp;&amp;&gt;&colon;&colon;value;
----

== Description

Return an iterator referring to the (possibly newly inserted) modifiable element in this map whose key is equivalent to that of the element to be inserted&period; The supplied `hint` is ignored&period;

== Return Value

iterator to the (possibly newly inserted) element

== Parameters

[cols="1,4"]
|===
| Name| Description
| *hint*
| iterator hint (ignored)
| *value*
| value to insert
|===


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