[#nlohmann-ordered_map-count-0d] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/ordered_map.adoc[ordered_map]::count :relfileprefix: ../../ :mrdocs: returns the number of elements matching the given key == Synopses Declared in `<nlohmann/ordered_map.hpp>` returns the number of elements matching the given key [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:nlohmann/ordered_map/size_type.adoc[size_type] xref:nlohmann/ordered_map/count-0a.adoc[count](xref:nlohmann/ordered_map/key_type.adoc[key_type] const& key) const; ---- [.small]#xref:nlohmann/ordered_map/count-0a.adoc[_» more..._]# returns the number of elements matching the given key [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class KeyType> requires detail::is_usable_as_key_type<key_compare, key_type, KeyType>::value xref:nlohmann/ordered_map/size_type.adoc[size_type] xref:nlohmann/ordered_map/count-06.adoc[count](KeyType&& key) const; ---- [.small]#xref:nlohmann/ordered_map/count-06.adoc[_» more..._]# == Return Value 1 if an element with the key exists, 0 otherwise == Parameters [cols="1,4"] |=== | Name| Description | *key* [in] | key to count |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#