remove elements given an iterator range
Declared in <nlohmann/json.hpp>
template<class IteratorType>
requires std::is_same<IteratorType, typename basic_json_t::iterator>::value ||
std::is_same<IteratorType, typename basic_json_t::const_iterator>::value
IteratorType
erase(
IteratorType first,
IteratorType last);
iterator following the last removed element
| Name | Description |
|---|---|
| first | iterator to the first element to remove |
| last | iterator following the last element to remove |