BloombergLP::bdljsn::JsonArray::erase

Erase the elements in the range [first, last)].

Synopsis

Declared in <bdljsn_json.h>

JsonArray::Iterator
erase(
    ConstIterator first,
    ConstIterator last);

Description

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).

Return Value

an iterator to the element following the last removed element

Parameters

NameDescription
firstbeginning of the erase range
lastend of the erase range