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);
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);
Return Value
number of elements found having key that had their value set
Parameters
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 |
Created with MrDocs