[#BloombergLP-bdlcc-StripedUnorderedMap-update]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/StripedUnorderedMap.adoc[StripedUnorderedMap]::update
:relfileprefix: ../../../
:mrdocs:

Call the specified `visitor` with the element (if one exists) in this hash map having the specified `key`&period; That is&colon; &grave; bool visitor(&amp;value, key)&semi; &grave; Return the number of elements updated or &hyphen;1 if `visitor` returned `false`&period; `visitor` has exclusive access (i&period;e&period;, write access) the element for during its invocation&period; The behavior is undefined if hash map manipulators and `getValue&ast;` methods 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
update(
    KEY const& key,
    xref:BloombergLP/bdlcc/StripedUnorderedMap/VisitorFunction.adoc[VisitorFunction] const& visitor);
----

== Description

DEPRECATED&colon; Use `visit(key, visitor)` instead&period;


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