[#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 `<bdljsn_json.h>` Same as the related overload above for `erase`. [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..._]# Remove from this unordered map the `value_type` object at the specified `position`, and return an iterator referring to the element immediately following the removed element, or to the past‐the‐end position if the removed element was the last element in the sequence of elements maintained by this unordered map. 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. The behavior is undefined unless `position` refers to a `value_type` object in this unordered map. [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..._]# Remove from this `JsonObject` the `Member` object having the specified `key`, if it exists, and return 1; otherwise (there is no object with a key equivalent to `key` in this `JsonObject`) return 0 with no other effect. 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t xref:BloombergLP/bdljsn/JsonObject/erase-06.adoc[erase](std::string_view const& key); ---- [.small]#xref:BloombergLP/bdljsn/JsonObject/erase-06.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#