[#BloombergLP-bdljsn-JsonArray-erase-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/JsonArray.adoc[JsonArray]::erase :relfileprefix: ../../../ :mrdocs: Erase the element at the specified `position`. == Synopsis Declared in `<bdljsn_json.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdljsn/JsonArray/Iterator-0d.adoc[JsonArray::Iterator] erase(xref:BloombergLP/bdljsn/JsonArray/ConstIterator.adoc[ConstIterator] position); ---- == Description Remove from this `JsonArray` the element at the specified `position`, and return an iterator providing modifiable access to the element immediately following the removed element, or the position returned by the method `end` if the removed element was the last in the sequence. The behavior is undefined unless `position` is an iterator in the range `[cbegin() .. cend())]`. == 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]#