[#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 `&lt;bdljsn&lowbar;json&period;h&gt;`

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


[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&period;&period;&period;_]#

Erase the element at the specified `index`&period;


[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&lowbar;t index);
----

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

Erase the elements in the range `&lsqb;first, last)&rsqb;`&period;


[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&period;&period;&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
| *index*
| zero&hyphen;based element position
| *first*
| beginning of the erase range
| *last*
| end of the erase range
|===


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