nlohmann::ordered_map::count

returns the number of elements matching the given key

Synopsis

Declared in <nlohmann/ordered_map.hpp>

size_type
count(key_type const& key) const;

Return Value

1 if an element with the key exists, 0 otherwise

Parameters

NameDescription
key [in]key to count