![]() |
TerraForge3D
2.3.1
3D Terrain And Landscape Generator
|
|
inline |
remove elements given an iterator range
Removes the element specified by the range [first; last)
. The iterator first does not need to be dereferenceable if first == last
: erasing an empty range is a no-op.
If called on a primitive type other than null
, the resulting JSON value will be null
.
[in] | first | iterator to the beginning of the range to remove |
[in] | last | iterator past the end of the range to remove |
end()
iterator is returned.IteratorType | an iterator or const_iterator |
end()
iterator.type_error.307 | if called on a null value; example: "cannot use
erase() with null" |
invalid_iterator.203 | if called on iterators which does not belong to the current JSON value; example: "iterators do not fit current value" |
invalid_iterator.204 | if called on a primitive type with invalid iterators (i.e., if first != begin() and last != end() ); example: "iterators out of range" |
@complexity The complexity depends on the type:
log(size()) + std::distance(first, last)
@liveexample{The example shows the result of erase()
for different JSON types.,erase__IteratorType_IteratorType}
Definition at line 22036 of file json.hpp.