remove elements given an iterator range

Synopsis

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

Return Value

iterator following the last removed element

Parameters

Name

Description

first

iterator to the first element to remove

last

iterator following the last element to remove

Created with MrDocs