setValue overloads
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...
number of elements found having key that had their value set
| Name | Description |
|---|---|
| key | key of the element to set or insert |
| equal | equality comparator for keys |
| value | move-insertable value to assign or insert |
| scope | whether to update the first or all matching elements |