[#nlohmann-ordered_map-count-0a]
= xref:nlohmann.adoc[nlohmann]::xref:nlohmann/ordered_map.adoc[ordered&lowbar;map]::count
:relfileprefix: ../../
:mrdocs:

returns the number of elements matching the given key

== Synopsis

Declared in `&lt;nlohmann&sol;ordered&lowbar;map&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:nlohmann/ordered_map/size_type.adoc[size&lowbar;type]
count(xref:nlohmann/ordered_map/key_type.adoc[key&lowbar;type] const& key) const;
----

== 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]#
