erase overloads

Synopses

Declared in <bdljsn_json.h>

Erase the member at the specified position.

Erase the member at the specified position.

Erase the member with the specified key, if present.

std::size_t
erase(std::string_view const& key);

Return Value

  • an iterator to the element following the last removed element

  • the number of members erased (0 or 1)

Parameters

Name

Description

position

iterator to the member to erase

key

UTF‐8 member name

Created with MrDocs