[#BloombergLP-bdlcc-StripedUnorderedMap-setValue-09] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/StripedUnorderedMap.adoc[StripedUnorderedMap]::setValue :relfileprefix: ../../../ :mrdocs: Set or insert the move‐insertable `value` for `key`. == Synopsis Declared in `<bdlcc_stripedunorderedmap.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t setValue( KEY const& key, xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<VALUE>] value); ---- == Description If no such element exists, insert `(key, value)`. Return 1 if `key` was found, and 0 otherwise. The `value` object is left in a valid but unspecified state. If `value` is allocator‐enabled and `allocator() != value.allocator()` this operation may cost as much as a copy. Note that the return value equals the number of elements found having `key`. == 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* | move‐insertable value to assign or insert |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#