[#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 or insert the move&hyphen;insertable value for the first matching `key`&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 or insert the value for `key` according to `scope`&period;


[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;_]#

== Return Value

number of elements found having `key` that had their value set

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| key of the element to set or insert
| *equal*
| equality comparator for keys
| *value*
| move&hyphen;insertable value to assign or insert
| *scope*
| whether to update the first or all matching elements
|===


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