[#BloombergLP-ball-CategoryManager_RadixTree-find-07]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/ball.adoc[ball]::xref:BloombergLP/ball/CategoryManager_RadixTree.adoc[CategoryManager&lowbar;RadixTree]::find
:relfileprefix: ../../../
:mrdocs:

Return a non&hyphen;modifiable reference to the value for `key`, if present&period;

== Synopsis

Declared in `&lt;ball&lowbar;categorymanager&lowbar;radixtree&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/ball/CategoryManager_RadixTree/OptValueCRef.adoc[CategoryManager&lowbar;RadixTree&lt;t&lowbar;VALUE&gt;::OptValueCRef]
find(std::string&lowbar;view const& key) const;
----

== Description

Return an optional containing a reference to the non&hyphen;modifiable value associated with the specified `key`, or an empty optional if the key is not found&period; The returned reference remains valid until the tree is modified&period;

== Return Value

optional reference to the value, or empty if not found

== Parameters

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


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