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

Set the value attribute of the element in this hash map having the specified `key` to the specified `value`&period; If no such element exists, insert `(key, value)`&period; If there are multiple elements in this hash map having `key` then set the value of the first such element found&period; Return the number of elements found having `key`&period; Note that if no elements were found, and a new value was inserted, `0` is returned&period; Also note that, when there are multiple elements having `key`, the selection of &quot;first&quot; is unspecified and subject to change&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::size&lowbar;t
setValueFirst(
    KEY const& key,
    xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;VALUE&gt;] value);
----


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