removes the element with the given key, if it exists
Declared in <nlohmann/ordered_map.hpp>
template<class KeyType>
requires detail::is_usable_as_key_type<key_compare, key_type, KeyType>::value
size_type
erase(KeyType&& key);
number of elements removed (0 or 1)
| Name | Description |
|---|---|
| key [in] | key of the element to remove |