[#BloombergLP-bdlcc-StripedUnorderedMap-visitReadOnly-0e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/StripedUnorderedMap.adoc[StripedUnorderedMap]::visitReadOnly
:relfileprefix: ../../../
:mrdocs:

Call the specified `visitor` on element (if one exists) in this hash map having the specified `key`&period; That is, for `(key, value)`, invoke&colon; &grave; bool visitor(value, key)&semi; &grave; Return the number of elements visited or `&hyphen;1` if `visitor` returned `false`&period; `visitor` has read&hyphen;only access to each element for duration of each invocation&period; The behavior is undefined if hash map manipulators are invoked from within `visitor`, as it may lead to a deadlock&period;

== Synopsis

Declared in `&lt;bdlcc&lowbar;stripedunorderedmap&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
visitReadOnly(
    KEY const& key,
    xref:BloombergLP/bdlcc/StripedUnorderedMap/ReadOnlyVisitorFunction.adoc[ReadOnlyVisitorFunction] const& visitor) const;
----


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