[#BloombergLP-bdlcc-StripedUnorderedContainerImpl-visitReadOnly-02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl.adoc[StripedUnorderedContainerImpl]::visitReadOnly
:relfileprefix: ../../../
:mrdocs:

`visitReadOnly` overloads

== Synopses

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

Visit every element read&hyphen;only by invoking the specified `visitor`&period;


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

[.small]#xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl/visitReadOnly-01.adoc[_» more&period;&period;&period;_]#

Visit each element with `key` read&hyphen;only via the specified `visitor`&period;


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

[.small]#xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl/visitReadOnly-0b.adoc[_» more&period;&period;&period;_]#

== Return Value

number of elements visited, or its negation if stopped early

== Parameters

[cols="1,4"]
|===
| Name| Description
| *visitor*
| functor invoked with each element
| *key*
| key of the elements to visit
|===


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