[#bsl-hash_map-insert-0c]
= xref:bsl.adoc[bsl]::xref:bsl/hash_map.adoc[hash&lowbar;map]::insert
:relfileprefix: ../../
:mrdocs:

`insert` overloads

== Synopses

Declared in `&lt;bslstp&lowbar;hashmap&period;h&gt;`

Insert the specified `&lowbar;&lowbar;obj` if no equivalent key exists&period;


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

[.small]#xref:bsl/hash_map/insert-0a.adoc[_» more&period;&period;&period;_]#

Insert each value in the specified range&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class &lowbar;InputIterator&gt;
void
xref:bsl/hash_map/insert-07.adoc[insert](
    &lowbar;InputIterator &lowbar;&lowbar;f,
    &lowbar;InputIterator &lowbar;&lowbar;l);
----

[.small]#xref:bsl/hash_map/insert-07.adoc[_» more&period;&period;&period;_]#

== Return Value

pair of an iterator to the element and whether insertion occurred

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;&lowbar;obj*
| value to insert
| *&lowbar;&lowbar;f*
| beginning of the input range
| *&lowbar;&lowbar;l*
| end of the input range
|===


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