[#BloombergLP-bdlcc-StripedUnorderedContainerImpl-setValueFirst-0e] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl.adoc[StripedUnorderedContainerImpl]::setValueFirst :relfileprefix: ../../../ :mrdocs: `setValueFirst` overloads == Synopses Declared in `<bdlcc_stripedunorderedcontainerimpl.h>` Set the value attribute of the element in this hash map having the specified `key` to the specified `value`. If no such element exists, insert `(key, value)`. If there are multiple elements in this hash map having `key` then set the value of the first such element found. Return the number of elements found having `key`. Note that if no elements were found, and a new value was inserted, `0` is returned. Also note that, when there are multiple elements having `key`, the selection of "first" is unspecified and subject to change. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl/setValueFirst-0c.adoc[setValueFirst]( KEY const& key, xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<VALUE>] value); ---- [.small]#xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl/setValueFirst-0c.adoc[_» more..._]# Set the value attribute of the _first_ element in this hash map (of possibly many) found to have the specified `key` to the specified `value`. If no such such element exists, insert `(key, value)`. Return the number of elements found with `key`. Note that if no elements were found, and a new value was inserted, `0` is returned. Also note that this method is more performant than `setValueAll` when there is one element having `key` in the hash map. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl/setValueFirst-03.adoc[setValueFirst]( KEY const& key, VALUE const& value); ---- [.small]#xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl/setValueFirst-03.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#