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

Name

Description

key [in]

key of the element to remove

Created with MrDocs