[#BloombergLP-bdlcc-StripedUnorderedMap-setValue-0f]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/StripedUnorderedMap.adoc[StripedUnorderedMap]::setValue
:relfileprefix: ../../../
:mrdocs:

`setValue` overloads

== Synopses

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

Set the value attribute of the element in this hash map having the specified `key` to the specified move&hyphen;insertable `value`&period; If no such such element exists, insert `(key, value)`&period; Return 1 if `key` was found, and 0 otherwise&period; The `value` object is left in a valid but unspecified state&period; If `value` is allocator&hyphen;enabled and `allocator() !&equals; value&period;allocator()` this operation may cost as much as a copy&period; Note that the return value equals the number of elements found having `key`&period;


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

[.small]#xref:BloombergLP/bdlcc/StripedUnorderedMap/setValue-09.adoc[_» more&period;&period;&period;_]#

Set the value attribute of the element in this hash map having the specified `key` to the specified `value`&period; If no such such element exists, insert `(key, value)`&period; Return 1 if `key` was found, and 0 otherwise&period; Note that the return value equals the number of elements found having `key`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::size&lowbar;t
xref:BloombergLP/bdlcc/StripedUnorderedMap/setValue-01.adoc[setValue](
    KEY const& key,
    VALUE const& value);
----

[.small]#xref:BloombergLP/bdlcc/StripedUnorderedMap/setValue-01.adoc[_» more&period;&period;&period;_]#


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