removes the element with the given key, if it exists
Synopsis
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);
Return Value
number of elements removed (0 or 1)
Parameters
Name |
Description |
key [in] |
key of the element to remove |
Created with MrDocs