[#bsl-multiset-05]
= xref:bsl.adoc[bsl]::xref:bsl/multiset-03.adoc[multiset&lt;KEY, COMPARATOR, ALLOCATOR&gt;]
:relfileprefix: ../
:mrdocs:

Deduce the template parameter `KEY` from the `value&lowbar;type` of the initializer&lowbar;list supplied to the constructor of `multiset`&period; Deduce the template parameters `COMPARATOR` and `ALLOCATOR` from the other parameters passed to the constructor&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class KEY,
    class COMPARATOR = std::less&lt;KEY&gt;,
    class ALLOCATOR = xref:bsl/allocator-0df.adoc[bsl::allocator&lt;KEY&gt;]&gt;
requires !bsl&colon;&colon;IsStdAllocator&lowbar;v&lt;COMPARATOR&gt; &amp;&amp; bsl&colon;&colon;IsStdAllocator&lowbar;v&lt;ALLOCATOR&gt;
xref:bsl/multiset-03.adoc[multiset&lt;KEY, COMPARATOR, ALLOCATOR&gt;](
    std::initializer&lowbar;list&lt;KEY&gt;,
    COMPARATOR,
    ALLOCATOR) -> xref:bsl/multiset-03.adoc[multiset&lt;KEY, COMPARATOR, ALLOCATOR&gt;];
----


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