returns the number of elements matching the given key
Declared in <nlohmann/ordered_map.hpp>
template<class KeyType>
requires detail::is_usable_as_key_type<key_compare, key_type, KeyType>::value
size_type
count(KeyType&& key) const;
1 if an element with the key exists, 0 otherwise
| Name | Description |
|---|---|
| key [in] | key to count |