[#BloombergLP-bdlcc-StripedUnorderedMap-setComputedValue] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/StripedUnorderedMap.adoc[StripedUnorderedMap]::setComputedValue :relfileprefix: ../../../ :mrdocs: Invoke the specified `visitor` on the value associated with the specified `key`. The `visitor` will be passed the address of the value, and `key`. If `key` is not in the map, `value` will be default constructed. That is, `visitor` must be invocable with the `VisitorFunction` signature: ` bool visitor(VALUE *value, const Key& key); ` If no element in the map has `key`, insert `(key, VALUE())` and invoke `visitor` with `value` pointing to the default constructed value. Return 1 if `key` was found and `visitor` returned `true`, 0 if `key` was not found, and ‐1 if `key` was found and `visitor` returned `false`. `visitor`, when invoked, has exclusive access (i.e., write access) to the element. The behavior is undefined if hash map manipulators and `getValue*` methods are invoked from within `visitor`, as it may lead to a deadlock. Note that the return value equals the number of elements found having `key`. Also note that a return value of `0` implies that an element was inserted. == Synopsis Declared in `<bdlcc_stripedunorderedmap.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int setComputedValue( KEY const& key, xref:BloombergLP/bdlcc/StripedUnorderedMap/VisitorFunction.adoc[VisitorFunction] const& visitor); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#