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

Set or insert the value for the specified `key`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::size&lowbar;t
setValue(
    KEY const& key,
    VALUE const& value);
----

== Description

If no 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;

== Return Value

1 if `key` was found, and 0 otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *key*
| key of the element to set or insert
| *value*
| value to assign or insert
|===


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