[#bsl-hash_map-2constructor-039]
= xref:bsl.adoc[bsl]::xref:bsl/hash_map.adoc[hash&lowbar;map]::hash&lowbar;map
:relfileprefix: ../../
:mrdocs:

Create a hash map from the specified iterator range&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class &lowbar;InputIterator&gt;
hash&lowbar;map(
    &lowbar;InputIterator &lowbar;&lowbar;f,
    &lowbar;InputIterator &lowbar;&lowbar;l,
    xref:bsl/hash_map/size_type.adoc[size&lowbar;type] &lowbar;&lowbar;n,
    xref:bsl/hash_map/hasher.adoc[hasher] const& &lowbar;&lowbar;hf,
    xref:bsl/hash_map/allocator_type.adoc[allocator&lowbar;type] const& &lowbar;&lowbar;a);
----


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