Erase the element at the specified index.
Synopsis
Declared in <bdljsn_json.h>
JsonArray::Iterator
erase(std::size_t index);
Description
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())].
Return Value
an iterator to the element following the last removed element
Parameters
Name |
Description |
index |
zero‐based element position |
Created with MrDocs