[#bsl-unordered_map-02b-find-07]
= xref:bsl.adoc[bsl]::xref:bsl/unordered_map-02b.adoc[unordered&lowbar;map]::find
:relfileprefix: ../../
:mrdocs:

Return a const iterator to the element with the specified `key`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;unorderedmap&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_map-02b/const_iterator.adoc[const&lowbar;iterator]
find(xref:bsl/unordered_map-02b/key_type.adoc[key&lowbar;type] const& key) const;
----

== Description

Return an iterator providing non&hyphen;modifiable access to the `value&lowbar;type` object in this unordered map with a key equivalent to the specified `key`, if such an entry exists, and the past&hyphen;the&hyphen;end iterator (`end`) otherwise&period;

== Return Value

const iterator to the element, or `end()` if not found

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| key to look up
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
