remove element given an iterator

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

Return Value

iterator following the last removed element

Parameters

Name

Description

pos

iterator to the element to remove

Created with MrDocs