[#bsl-hash_multiset-2constructor-07b]
= xref:bsl.adoc[bsl]::xref:bsl/hash_multiset.adoc[hash&lowbar;multiset]::hash&lowbar;multiset
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

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

Create an empty hash multiset&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/hash_multiset/2constructor-0bb.adoc[hash&lowbar;multiset]();
----

[.small]#xref:bsl/hash_multiset/2constructor-0bb.adoc[_» more&period;&period;&period;_]#

Create an empty hash multiset with at least the specified `&lowbar;&lowbar;n` buckets&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:bsl/hash_multiset/2constructor-0d6.adoc[hash&lowbar;multiset](xref:bsl/hash_multiset/size_type.adoc[size&lowbar;type] &lowbar;&lowbar;n);
----

[.small]#xref:bsl/hash_multiset/2constructor-0d6.adoc[_» more&period;&period;&period;_]#

Create an empty hash multiset using the specified `&lowbar;&lowbar;a` allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:bsl/hash_multiset/2constructor-01.adoc[hash&lowbar;multiset](xref:bsl/hash_multiset/allocator_type.adoc[allocator&lowbar;type] const& &lowbar;&lowbar;a);
----

[.small]#xref:bsl/hash_multiset/2constructor-01.adoc[_» more&period;&period;&period;_]#

Create an empty hash multiset with at least the specified `&lowbar;&lowbar;n` buckets using the specified `&lowbar;&lowbar;a` allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/hash_multiset/2constructor-0e9.adoc[hash&lowbar;multiset](
    xref:bsl/hash_multiset/size_type.adoc[size&lowbar;type] &lowbar;&lowbar;n,
    xref:bsl/hash_multiset/allocator_type.adoc[allocator&lowbar;type] const& &lowbar;&lowbar;a);
----

[.small]#xref:bsl/hash_multiset/2constructor-0e9.adoc[_» more&period;&period;&period;_]#

Create a hash multiset with the specified bucket count and hasher&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/hash_multiset/2constructor-00.adoc[hash&lowbar;multiset](
    xref:bsl/hash_multiset/size_type.adoc[size&lowbar;type] &lowbar;&lowbar;n,
    xref:bsl/hash_multiset/hasher.adoc[hasher] const& &lowbar;&lowbar;hf);
----

[.small]#xref:bsl/hash_multiset/2constructor-00.adoc[_» more&period;&period;&period;_]#

Copy&hyphen;construct a hash multiset using the specified allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/hash_multiset/2constructor-0e7.adoc[hash&lowbar;multiset](
    xref:bsl/hash_multiset.adoc[&lowbar;Self] const& &lowbar;&lowbar;x,
    xref:bsl/hash_multiset/allocator_type.adoc[allocator&lowbar;type] const& &lowbar;&lowbar;a);
----

[.small]#xref:bsl/hash_multiset/2constructor-0e7.adoc[_» more&period;&period;&period;_]#

Create a hash multiset from the range `&lsqb;&lowbar;&lowbar;f, &lowbar;&lowbar;l)&rsqb;`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class &lowbar;InputIterator&gt;
xref:bsl/hash_multiset/2constructor-04.adoc[hash&lowbar;multiset](
    &lowbar;InputIterator &lowbar;&lowbar;f,
    &lowbar;InputIterator &lowbar;&lowbar;l);
----

[.small]#xref:bsl/hash_multiset/2constructor-04.adoc[_» more&period;&period;&period;_]#

Create a hash multiset with the specified bucket count, hasher, and allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/hash_multiset/2constructor-05.adoc[hash&lowbar;multiset](
    xref:bsl/hash_multiset/size_type.adoc[size&lowbar;type] &lowbar;&lowbar;n,
    xref:bsl/hash_multiset/hasher.adoc[hasher] const& &lowbar;&lowbar;hf,
    xref:bsl/hash_multiset/allocator_type.adoc[allocator&lowbar;type] const& &lowbar;&lowbar;a);
----

[.small]#xref:bsl/hash_multiset/2constructor-05.adoc[_» more&period;&period;&period;_]#

Create a hash multiset with the specified bucket count, hasher, and equality predicate&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/hash_multiset/2constructor-072.adoc[hash&lowbar;multiset](
    xref:bsl/hash_multiset/size_type.adoc[size&lowbar;type] &lowbar;&lowbar;n,
    xref:bsl/hash_multiset/hasher.adoc[hasher] const& &lowbar;&lowbar;hf,
    xref:bsl/hash_multiset/key_equal.adoc[key&lowbar;equal] const& &lowbar;&lowbar;eql);
----

[.small]#xref:bsl/hash_multiset/2constructor-072.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class &lowbar;InputIterator&gt;
xref:bsl/hash_multiset/2constructor-028.adoc[hash&lowbar;multiset](
    &lowbar;InputIterator &lowbar;&lowbar;f,
    &lowbar;InputIterator &lowbar;&lowbar;l,
    xref:bsl/hash_multiset/size_type.adoc[size&lowbar;type] &lowbar;&lowbar;n);
----

[.small]#xref:bsl/hash_multiset/2constructor-028.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class &lowbar;InputIterator&gt;
xref:bsl/hash_multiset/2constructor-06.adoc[hash&lowbar;multiset](
    &lowbar;InputIterator &lowbar;&lowbar;f,
    &lowbar;InputIterator &lowbar;&lowbar;l,
    xref:bsl/hash_multiset/allocator_type.adoc[allocator&lowbar;type] const& &lowbar;&lowbar;a);
----

[.small]#xref:bsl/hash_multiset/2constructor-06.adoc[_» more&period;&period;&period;_]#

Create a hash multiset with the specified bucket count, functors, and allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/hash_multiset/2constructor-02b.adoc[hash&lowbar;multiset](
    xref:bsl/hash_multiset/size_type.adoc[size&lowbar;type] &lowbar;&lowbar;n,
    xref:bsl/hash_multiset/hasher.adoc[hasher] const& &lowbar;&lowbar;hf,
    xref:bsl/hash_multiset/key_equal.adoc[key&lowbar;equal] const& &lowbar;&lowbar;eql,
    xref:bsl/hash_multiset/allocator_type.adoc[allocator&lowbar;type] const& &lowbar;&lowbar;a);
----

[.small]#xref:bsl/hash_multiset/2constructor-02b.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:bsl/hash_multiset/2constructor-0d2.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class &lowbar;InputIterator&gt;
xref:bsl/hash_multiset/2constructor-0b7.adoc[hash&lowbar;multiset](
    &lowbar;InputIterator &lowbar;&lowbar;f,
    &lowbar;InputIterator &lowbar;&lowbar;l,
    xref:bsl/hash_multiset/size_type.adoc[size&lowbar;type] &lowbar;&lowbar;n,
    xref:bsl/hash_multiset/hasher.adoc[hasher] const& &lowbar;&lowbar;hf);
----

[.small]#xref:bsl/hash_multiset/2constructor-0b7.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:bsl/hash_multiset/2constructor-0c.adoc[_» more&period;&period;&period;_]#

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


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class &lowbar;InputIterator&gt;
xref:bsl/hash_multiset/2constructor-08.adoc[hash&lowbar;multiset](
    &lowbar;InputIterator &lowbar;&lowbar;f,
    &lowbar;InputIterator &lowbar;&lowbar;l,
    xref:bsl/hash_multiset/size_type.adoc[size&lowbar;type] &lowbar;&lowbar;n,
    xref:bsl/hash_multiset/hasher.adoc[hasher] const& &lowbar;&lowbar;hf,
    xref:bsl/hash_multiset/key_equal.adoc[key&lowbar;equal] const& &lowbar;&lowbar;eql,
    xref:bsl/hash_multiset/allocator_type.adoc[allocator&lowbar;type] const& &lowbar;&lowbar;a = allocator&lowbar;type());
----

[.small]#xref:bsl/hash_multiset/2constructor-08.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *&lowbar;&lowbar;n*
| minimum number of buckets to create
| *&lowbar;&lowbar;a*
| allocator used to supply memory
| *&lowbar;&lowbar;hf*
| hash functor
| *&lowbar;&lowbar;x*
| hash multiset whose elements are copied
| *&lowbar;&lowbar;f*
| beginning of the input range
| *&lowbar;&lowbar;l*
| end of the input range
| *&lowbar;&lowbar;eql*
| key&hyphen;equality predicate
|===


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