BloombergLP::bdlcc::StripedUnorderedContainerImpl_Bucket::setValue

setValue overloads

Synopses

Declared in <bdlcc_stripedunorderedcontainerimpl.h>

Set or insert the move-insertable value for the first matching key.

template<class EQUAL>
std::size_t
setValue(
    KEY const& key,
    EQUAL const& equal,
    bslmf::MovableRef<VALUE> value);
» more...

Set or insert the value for key according to scope.

template<class EQUAL>
std::size_t
setValue(
    KEY const& key,
    EQUAL const& equal,
    VALUE const& value,
    BucketScope scope);
» more...

Return Value

number of elements found having key that had their value set

Parameters

NameDescription
keykey of the element to set or insert
equalequality comparator for keys
valuemove-insertable value to assign or insert
scopewhether to update the first or all matching elements