BloombergLP::bdlcc::StripedUnorderedMap::setValue

Set or insert the value for the specified key.

Synopsis

Declared in <bdlcc_stripedunorderedmap.h>

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

Description

If no such element exists, insert (key, value). Return 1 if key was found, and 0 otherwise. Note that the return value equals the number of elements found having key.

Return Value

1 if key was found, and 0 otherwise

Parameters

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