BloombergLP::bdlcc::StripedUnorderedMultiMap::setValueAll

Set the value of every element matching key, or insert one.

Synopsis

Declared in <bdlcc_stripedunorderedmultimap.h>

std::size_t
setValueAll(
    KEY const& key,
    VALUE const& value);

Description

Set the value attribute of every element in this hash map having the specified key to the specified value. If no such such element exists, insert (key, value). Return the number of elements found with key. Note that if no elements were found, and a new value was inserted, 0 is returned.

Return Value

number of elements found with key

Parameters

NameDescription
keykey of the elements to set or insert
valuevalue to assign or insert