[#nlohmann-ordered_map-2constructor-09]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/ordered_map.adoc[ordered&lowbar;map]::ordered&lowbar;map
:relfileprefix: ../../
:mrdocs:

constructs an ordered&lowbar;map from an initializer list of key&hyphen;value pairs

== Synopsis

Declared in `&lt;nlohmann&sol;ordered&lowbar;map&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
ordered&lowbar;map(
    std::initializer&lowbar;list&lt;value&lowbar;type&gt; init,
    Allocator const& alloc = Allocator());
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *init* [in]
| initializer list of key&hyphen;value pairs to insert
| *alloc* [in]
| allocator to use for the underlying container
|===


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