[#BloombergLP-bdld-DatumMapRef-find]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::xref:BloombergLP/bdld/DatumMapRef.adoc[DatumMapRef]::find
:relfileprefix: ../../../
:mrdocs:

Return a const pointer to the datum having the specified `key`, if it exists and 0 otherwise&period; Note that the `find` has order of `O(n)` if the data is not sorted based on the keys&period; If the data is sorted, it has order of `O(log(n))`&period; Also note that if multiple entries with matching keys are present, which matching record is found is unspecified&period;

== Synopsis

Declared in `&lt;bdld&lowbar;datum&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdld/Datum.adoc[Datum] const*
find(xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& key) const;
----


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