[#BloombergLP-bdljsn-JsonArray-erase-0b] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/JsonArray.adoc[JsonArray]::erase :relfileprefix: ../../../ :mrdocs: `erase` overloads == Synopses Declared in `<bdljsn_json.h>` 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())]`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdljsn/JsonArray/Iterator-0d.adoc[JsonArray::Iterator] xref:BloombergLP/bdljsn/JsonArray/erase-0a.adoc[erase](xref:BloombergLP/bdljsn/JsonArray/ConstIterator.adoc[ConstIterator] position); ---- [.small]#xref:BloombergLP/bdljsn/JsonArray/erase-0a.adoc[_» more..._]# Remove from this `JsonArray` the element at the specified `index`, 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 `index` is in the range `[0 .. size())]`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdljsn/JsonArray/Iterator-0d.adoc[JsonArray::Iterator] xref:BloombergLP/bdljsn/JsonArray/erase-08.adoc[erase](std::size_t index); ---- [.small]#xref:BloombergLP/bdljsn/JsonArray/erase-08.adoc[_» more..._]# Remove from this `JsonArray` the sequence of elements starting at the specified `first` position and ending before the specified `last` position, and return an iterator providing modifiable access to the element immediately following the last removed element, or the position returned by the method `end` if the removed elements were last in the sequence. The behavior is undefined unless `first` is an iterator in the range `[cbegin() .. cend()]` (both endpoints included) and `last` is an iterator in the range `[first .. cend()]` (both endpoints included). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdljsn/JsonArray/Iterator-0d.adoc[JsonArray::Iterator] xref:BloombergLP/bdljsn/JsonArray/erase-01.adoc[erase]( xref:BloombergLP/bdljsn/JsonArray/ConstIterator.adoc[ConstIterator] first, xref:BloombergLP/bdljsn/JsonArray/ConstIterator.adoc[ConstIterator] last); ---- [.small]#xref:BloombergLP/bdljsn/JsonArray/erase-01.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#