[#bsl-unordered_multiset-06c-2constructor-0ab]
= xref:bsl.adoc[bsl]::xref:bsl/unordered_multiset-06c.adoc[unordered&lowbar;multiset]::unordered&lowbar;multiset
:relfileprefix: ../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;bslstl&lowbar;unorderedmultiset&period;h&gt;`

Create an empty unordered multiset&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_multiset-06c/2constructor-09e.adoc[unordered&lowbar;multiset]();
----

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

Create an unordered multiset as a copy of `original`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_multiset-06c/2constructor-00.adoc[unordered&lowbar;multiset](xref:bsl/unordered_multiset-06c.adoc[unordered&lowbar;multiset] const& original);
----

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

Create an unordered multiset by moving from `original`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_multiset-06c/2constructor-0e0d.adoc[unordered&lowbar;multiset](xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;unordered&lowbar;multiset&gt;] original);
----

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

Create an empty unordered multiset using the specified `basicAllocator`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:bsl/unordered_multiset-06c/2constructor-0c.adoc[unordered&lowbar;multiset](ALLOCATOR const& basicAllocator);
----

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

Same as the preceding overload, using the specified allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_multiset-06c/2constructor-017.adoc[unordered&lowbar;multiset](
    xref:bsl/unordered_multiset-06c/size_type.adoc[size&lowbar;type] initialNumBuckets,
    ALLOCATOR const& basicAllocator);
----

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

Create an unordered multiset by moving from `original` with `basicAllocator`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_multiset-06c/2constructor-075.adoc[unordered&lowbar;multiset](
    xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;unordered&lowbar;multiset&gt;] original,
    ALLOCATOR const& basicAllocator);
----

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

Create a copy of `original` using `basicAllocator`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_multiset-06c/2constructor-03a.adoc[unordered&lowbar;multiset](
    xref:bsl/unordered_multiset-06c.adoc[unordered&lowbar;multiset] const& original,
    ALLOCATOR const& basicAllocator);
----

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

Create an unordered multiset from the specified `values` initializer list using `basicAllocator`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class = void&gt;
requires bsl&colon;&colon;IsStdAllocator&lt;ALLOCATOR&gt;&colon;&colon;value
xref:bsl/unordered_multiset-06c/2constructor-0a9.adoc[unordered&lowbar;multiset](
    std::initializer&lowbar;list&lt;KEY&gt; values,
    ALLOCATOR const& basicAllocator);
----

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

Same as the preceding overload, using the specified allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_multiset-06c/2constructor-071.adoc[unordered&lowbar;multiset](
    xref:bsl/unordered_multiset-06c/size_type.adoc[size&lowbar;type] initialNumBuckets,
    HASH const& hashFunction,
    ALLOCATOR const& basicAllocator);
----

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

Same as the preceding overload, using the specified allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class INPUT&lowbar;ITERATOR&gt;
xref:bsl/unordered_multiset-06c/2constructor-0e09.adoc[unordered&lowbar;multiset](
    INPUT&lowbar;ITERATOR first,
    INPUT&lowbar;ITERATOR last,
    ALLOCATOR const& basicAllocator);
----

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

Same as the preceding overload, using the specified allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class RANGE&gt;
xref:bsl/unordered_multiset-06c/2constructor-0e1.adoc[unordered&lowbar;multiset](
    std::from&lowbar;range&lowbar;t tag,
    RANGE&& range,
    ALLOCATOR const& basicAllocator);
----

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

Same as the preceding overload, using the specified allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class = void&gt;
requires bsl&colon;&colon;IsStdAllocator&lt;ALLOCATOR&gt;&colon;&colon;value
xref:bsl/unordered_multiset-06c/2constructor-036.adoc[unordered&lowbar;multiset](
    std::initializer&lowbar;list&lt;KEY&gt; values,
    xref:bsl/unordered_multiset-06c/size_type.adoc[size&lowbar;type] initialNumBuckets,
    ALLOCATOR const& basicAllocator);
----

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

Same as the preceding overload, using the specified bucket count and hash&sol;equality functors&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
xref:bsl/unordered_multiset-06c/2constructor-02.adoc[unordered&lowbar;multiset](
    xref:bsl/unordered_multiset-06c/size_type.adoc[size&lowbar;type] initialNumBuckets,
    HASH const& hashFunction = HASH(),
    EQUAL const& keyEqual = EQUAL(),
    ALLOCATOR const& basicAllocator = ALLOCATOR());
----

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

Same as the preceding overload, using the specified allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class INPUT&lowbar;ITERATOR&gt;
xref:bsl/unordered_multiset-06c/2constructor-019.adoc[unordered&lowbar;multiset](
    INPUT&lowbar;ITERATOR first,
    INPUT&lowbar;ITERATOR last,
    xref:bsl/unordered_multiset-06c/size_type.adoc[size&lowbar;type] initialNumBuckets,
    ALLOCATOR const& basicAllocator);
----

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

Same as the preceding overload, using the specified allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class RANGE&gt;
xref:bsl/unordered_multiset-06c/2constructor-018.adoc[unordered&lowbar;multiset](
    std::from&lowbar;range&lowbar;t tag,
    RANGE&& range,
    xref:bsl/unordered_multiset-06c/size_type.adoc[size&lowbar;type] initialNumBuckets,
    ALLOCATOR const& basicAllocator);
----

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

Same as the preceding overload, using the specified allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class = void,
    class = void&gt;
requires std&colon;&colon;is&lowbar;invocable&lowbar;v&lt;HASH, const KEY &amp;&gt; &amp;&amp; bsl&colon;&colon;IsStdAllocator&lt;ALLOCATOR&gt;&colon;&colon;value
xref:bsl/unordered_multiset-06c/2constructor-0e3.adoc[unordered&lowbar;multiset](
    std::initializer&lowbar;list&lt;KEY&gt; values,
    xref:bsl/unordered_multiset-06c/size_type.adoc[size&lowbar;type] initialNumBuckets,
    HASH const& hashFunction,
    ALLOCATOR const& basicAllocator);
----

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

Same as the preceding overload without a key&hyphen;equality functor&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class INPUT&lowbar;ITERATOR&gt;
xref:bsl/unordered_multiset-06c/2constructor-04a.adoc[unordered&lowbar;multiset](
    INPUT&lowbar;ITERATOR first,
    INPUT&lowbar;ITERATOR last,
    xref:bsl/unordered_multiset-06c/size_type.adoc[size&lowbar;type] initialNumBuckets,
    HASH const& hashFunction,
    ALLOCATOR const& basicAllocator);
----

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

Create an unordered multiset from `range` with hash and allocator&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class RANGE&gt;
xref:bsl/unordered_multiset-06c/2constructor-06.adoc[unordered&lowbar;multiset](
    std::from&lowbar;range&lowbar;t tag,
    RANGE&& range,
    xref:bsl/unordered_multiset-06c/size_type.adoc[size&lowbar;type] initialNumBuckets,
    HASH const& hashFunction,
    ALLOCATOR const& basicAllocator);
----

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

Create an unordered multiset from the specified `values` initializer list&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class = void,
    class = void,
    class = void&gt;
requires std&colon;&colon;is&lowbar;invocable&lowbar;v&lt;HASH, const KEY &amp;&gt; &amp;&amp; std&colon;&colon;is&lowbar;invocable&lowbar;v&lt;EQUAL, const KEY &amp;, const KEY &amp;&gt; &amp;&amp; bsl&colon;&colon;IsStdAllocator&lowbar;v&lt;ALLOCATOR&gt;
xref:bsl/unordered_multiset-06c/2constructor-047.adoc[unordered&lowbar;multiset](
    std::initializer&lowbar;list&lt;KEY&gt; values,
    xref:bsl/unordered_multiset-06c/size_type.adoc[size&lowbar;type] initialNumBuckets = 0,
    HASH const& hashFunction = HASH(),
    EQUAL const& keyEqual = EQUAL(),
    ALLOCATOR const& basicAllocator = ALLOCATOR());
----

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

Create an unordered multiset from the specified iterator range&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class INPUT&lowbar;ITERATOR&gt;
xref:bsl/unordered_multiset-06c/2constructor-0aa.adoc[unordered&lowbar;multiset](
    INPUT&lowbar;ITERATOR first,
    INPUT&lowbar;ITERATOR last,
    xref:bsl/unordered_multiset-06c/size_type.adoc[size&lowbar;type] initialNumBuckets = 0,
    HASH const& hashFunction = HASH(),
    EQUAL const& keyEqual = EQUAL(),
    ALLOCATOR const& basicAllocator = ALLOCATOR());
----

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

Create an unordered multiset from the specified `range`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class RANGE&gt;
xref:bsl/unordered_multiset-06c/2constructor-090.adoc[unordered&lowbar;multiset](
    std::from&lowbar;range&lowbar;t tag,
    RANGE&& range,
    xref:bsl/unordered_multiset-06c/size_type.adoc[size&lowbar;type] initialNumBuckets = 0,
    HASH const& hashFunction = HASH(),
    EQUAL const& keyEqual = EQUAL(),
    ALLOCATOR const& basicAllocator = ALLOCATOR());
----

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| unordered multiset to copy
| *basicAllocator*
| the allocator used to supply memory
| *initialNumBuckets*
| the initial number of buckets
| *values*
| initializer list of keys to insert
| *hashFunction*
| the hash function
| *first*
| the start of the iterator range
| *last*
| one past the end of the iterator range
| *tag*
| disambiguation tag selecting the range constructor
| *range*
| input range of elements to insert
| *keyEqual*
| the key&hyphen;equality functor
|===


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