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

constructs an ordered&lowbar;map with the elements in the range &lsqb;first, last)&rsqb;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class It&gt;
ordered&lowbar;map(
    It first,
    It last,
    Allocator const& alloc = Allocator());
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *first* [in]
| iterator to the first element to insert
| *last* [in]
| iterator past the last element to insert
| *alloc* [in]
| allocator to use for the underlying container
|===


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