insertUnique overloads

Synopses

Declared in <bdlcc_stripedunorderedcontainerimpl.h>

Insert or update using the move‐insertable value for key.

std::size_t
insertUnique(
    KEY const& key,
    bslmf::MovableRef<VALUE> value);

Insert or update the element having the specified key and value.

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

Return Value

1 if an element is inserted, and 0 if an existing element is updated

Parameters

Name

Description

key

key of the element to insert or update

value

move‐insertable value to assign or insert

Created with MrDocs