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

`visit` overloads

== Synopses

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

Call `visitor` on every element until finished or `visitor` returns false&period;


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

[.small]#xref:BloombergLP/bdlcc/StripedUnorderedMap/visit-06.adoc[_» more&period;&period;&period;_]#

Call `visitor` on the element having `key`, if present&period;


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

[.small]#xref:BloombergLP/bdlcc/StripedUnorderedMap/visit-03.adoc[_» more&period;&period;&period;_]#

== Return Value

* number of elements visited, or its negation if stopped early
* the number of elements updated, or &hyphen;1 if `visitor` returned `false`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *visitor*
| functor invoked with each element&apos;s value address
| *key*
| key of the element to visit
|===


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