[#nlohmann-ordered_map-find-08] = xref:nlohmann.adoc[nlohmann]::xref:nlohmann/ordered_map.adoc[ordered_map]::find :relfileprefix: ../../ :mrdocs: finds an element with the given key == Synopses Declared in `<nlohmann/ordered_map.hpp>` finds an element with the given key [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:nlohmann/ordered_map/iterator.adoc[iterator] xref:nlohmann/ordered_map/find-0a.adoc[find](xref:nlohmann/ordered_map/key_type.adoc[key_type] const& key); ---- [.small]#xref:nlohmann/ordered_map/find-0a.adoc[_» more..._]# finds an element with the given key [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:nlohmann/ordered_map/const_iterator.adoc[const_iterator] xref:nlohmann/ordered_map/find-078.adoc[find](xref:nlohmann/ordered_map/key_type.adoc[key_type] const& key) const; ---- [.small]#xref:nlohmann/ordered_map/find-078.adoc[_» more..._]# finds an element with 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/iterator.adoc[iterator] xref:nlohmann/ordered_map/find-00.adoc[find](KeyType&& key); ---- [.small]#xref:nlohmann/ordered_map/find-00.adoc[_» more..._]# finds an element with 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/const_iterator.adoc[const_iterator] xref:nlohmann/ordered_map/find-075.adoc[find](KeyType&& key) const; ---- [.small]#xref:nlohmann/ordered_map/find-075.adoc[_» more..._]# == Return Value * iterator to the element if found, or end() otherwise * const iterator to the element if found, or end() otherwise == Parameters [cols="1,4"] |=== | Name| Description | *key* [in] | key to search for |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#