nlohmann::ordered_map::erase

removes the element with the given key, if it exists

Synopsis

Declared in <nlohmann/ordered_map.hpp>

size_type
erase(key_type const& key);

Return Value

number of elements removed (0 or 1)

Parameters

NameDescription
key [in]key of the element to remove