[#bsl-multimap-0ae-2constructor-085]
= xref:bsl.adoc[bsl]::xref:bsl/multimap-0ae.adoc[multimap]::multimap
:relfileprefix: ../../
:mrdocs:

Create a multimap and insert each `value&lowbar;type` object in the specified `values` initializer list&period; Optionally specify a `comparator` used to order keys contained in this object&period; If `comparator` is not supplied, a default&hyphen;constructed object of the (template parameter) type `COMPARATOR` is used&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is not supplied, a default&hyphen;constructed object of the (template parameter) type `ALLOCATOR` is used&period; If the type `ALLOCATOR` is `bsl&colon;&colon;allocator` (the default), then `basicAllocator`, if supplied, shall be convertible to `bslma&colon;&colon;Allocator &ast;`&period; If the type `ALLOCATOR` is `bsl&colon;&colon;allocator` and `basicAllocator` is not supplied, the currently installed default allocator is used&period; If `values` is ordered according to `comparator`, then this operation has `O&lsqb;N&rsqb;` complexity, where `N` is the number of elements in `values`&semi; otherwise, this operation has `O&lsqb;N &ast; log(N)&rsqb;` complexity&period; This method requires that the (template parameter) types `KEY` and `VALUE` both be `copy&hyphen;insertable` into this multimap (see &lcub;Requirements on `KEY` and `VALUE`&rcub;)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
multimap(
    std::initializer&lowbar;list&lt;value&lowbar;type&gt; values,
    COMPARATOR const& comparator = COMPARATOR(),
    ALLOCATOR const& basicAllocator = ALLOCATOR());
----


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