[#nlohmann-ordered_map-erase-0c9]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/ordered_map.adoc[ordered&lowbar;map]::erase
:relfileprefix: ../../
:mrdocs:

removes 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"]
----
xref:nlohmann/ordered_map/iterator.adoc[iterator]
erase(
    xref:nlohmann/ordered_map/iterator.adoc[iterator] first,
    xref:nlohmann/ordered_map/iterator.adoc[iterator] last);
----

== Return Value

iterator following the last removed element

== Parameters

[cols="1,4"]
|===
| Name| Description
| *first* [in]
| iterator to the first element to remove
| *last* [in]
| iterator past the last element to remove
|===


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