BloombergLP::bdlcc::StripedUnorderedContainerImpl::setValueFirst

setValueFirst overloads

Synopses

Declared in <bdlcc_stripedunorderedcontainerimpl.h>

Set the first element with key to the move-insertable value.

std::size_t
setValueFirst(
    KEY const& key,
    bslmf::MovableRef<VALUE> value);
» more...

Set the first element with key to value, inserting if absent.

std::size_t
setValueFirst(
    KEY const& key,
    VALUE const& value);
» more...

Return Value

  • number of elements found having key
  • number of elements found with key

Parameters

NameDescription
keykey of the element to set or insert
valuemove-insertable value to assign or insert