BloombergLP::bdljsn::JsonObject::erase

erase overloads

Synopses

Declared in <bdljsn_json.h>

Erase the member at the specified position.

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

Erase the member at the specified position.

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

Erase the member with the specified key, if present.

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

Return Value

  • an iterator to the element following the last removed element
  • the number of members erased (0 or 1)

Parameters

NameDescription
positioniterator to the member to erase
keyUTF-8 member name