[#nlohmann-ordered_map-erase-0b] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/ordered_map.adoc[ordered_map]::erase :relfileprefix: ../../ :mrdocs: removes the element with the given key, if it exists == Synopsis Declared in `<nlohmann/ordered_map.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:nlohmann/ordered_map/size_type.adoc[size_type] erase(xref:nlohmann/ordered_map/key_type.adoc[key_type] const& key); ---- == Return Value number of elements removed (0 or 1) == Parameters [cols="1,4"] |=== | Name| Description | *key* [in] | key of the element to remove |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#