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

`erase` overloads

== Synopses

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

Same as the related overload above for `erase`&period;


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

[.small]#xref:BloombergLP/bdljsn/JsonObject/erase-01.adoc[_» more&period;&period;&period;_]#

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;


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

[.small]#xref:BloombergLP/bdljsn/JsonObject/erase-02.adoc[_» more&period;&period;&period;_]#

Remove from this `JsonObject` the `Member` object having the specified `key`, if it exists, and return 1&semi; otherwise (there is no object with a key equivalent to `key` in this `JsonObject`) return 0 with no other effect&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;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::size&lowbar;t
xref:BloombergLP/bdljsn/JsonObject/erase-06.adoc[erase](std::string&lowbar;view const& key);
----

[.small]#xref:BloombergLP/bdljsn/JsonObject/erase-06.adoc[_» more&period;&period;&period;_]#


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