[#BloombergLP-bdlcc-StripedUnorderedContainerImpl_Bucket-setValue-0e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_Bucket.adoc[StripedUnorderedContainerImpl&lowbar;Bucket]::setValue
:relfileprefix: ../../../
:mrdocs:

`setValue` overloads

== Synopses

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

Set the value attribute of the element in this bucket having the specified `key` to the specified `value`, using the specified `equal` to compare keys&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` that had their value set&period; Note that, when there are multiple elements having `key`, the selection of &quot;first&quot; is unspecified and subject to change&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class EQUAL&gt;
std::size&lowbar;t
xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_Bucket/setValue-0d.adoc[setValue](
    KEY const& key,
    EQUAL const& equal,
    xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;VALUE&gt;] value);
----

[.small]#xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_Bucket/setValue-0d.adoc[_» more&period;&period;&period;_]#

Set the value attribute of the element in this bucket having the specified `key` to the specified `value`, using the specified `equal` to compare keys&period; If no such element exists, insert `(key, value)`&period; The behavior with respect to duplicate key values in the bucket depends on the specified `scope`&colon;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class EQUAL&gt;
std::size&lowbar;t
xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_Bucket/setValue-0b.adoc[setValue](
    KEY const& key,
    EQUAL const& equal,
    VALUE const& value,
    xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_Bucket/BucketScope.adoc[BucketScope] scope);
----

[.small]#xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl_Bucket/setValue-0b.adoc[_» more&period;&period;&period;_]#


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