[#BloombergLP-bdljsn-JsonObject-erase-02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/JsonObject.adoc[JsonObject]::erase
:relfileprefix: ../../../
:mrdocs:

Erase the member at the specified `position`&period;

== Synopsis

Declared in `&lt;bdljsn&lowbar;json&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/JsonObject/Iterator-05.adoc[JsonObject::Iterator]
erase(xref:BloombergLP/bdljsn/JsonObject/Iterator-05.adoc[Iterator] position);
----

== Description

Remove from this unordered map the `value&lowbar;type` object at the specified `position`, and return an iterator referring to the element immediately following the removed element, or to the past&hyphen;the&hyphen;end position if the removed element was the last element in the sequence of elements maintained by this unordered map&period; This method invalidates only iterators and references to the removed element and previously saved values of the `end()` iterator, and preserves the relative order of the elements not removed&period; The behavior is undefined unless `position` refers to a `value&lowbar;type` object in this unordered map&period;

== Return Value

an iterator to the element following the last removed element

== Parameters

[cols="1,4"]
|===
| Name| Description
| *position*
| iterator to the member to erase
|===


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