BloombergLP::bdljsn::JsonObject::erase

erase overloads

Synopses

Declared in <bdljsn_json.h>

Same as the related overload above for erase.

JsonObject::Iterator
erase(ConstIterator position);
» more...

Remove from this unordered map the value_type object at the specified position, and return an iterator referring to the element immediately following the removed element, or to the past-the-end position if the removed element was the last element in the sequence of elements maintained by this unordered map. This method invalidates only iterators and references to the removed element and previously saved values of the end() iterator, and preserves the relative order of the elements not removed. The behavior is undefined unless position refers to a value_type object in this unordered map.

JsonObject::Iterator
erase(Iterator position);
» more...

Remove from this JsonObject the Member object having the specified key, if it exists, and return 1; otherwise (there is no object with a key equivalent to key in this JsonObject) return 0 with no other effect. This method invalidates only iterators and references to the removed element and previously saved values of the end() iterator, and preserves the relative order of the elements not removed.

std::size_t
erase(std::string_view const& key);
» more...