Insert or update the element having the specified key and value.
Declared in <bdlcc_stripedunorderedmap.h>
std::size_t
insert(
KEY const& key,
VALUE const& value);
If key already exists in this hash map, the value attribute of that element is set to value. Return 1 if an element is inserted, and 0 if an existing element is updated. Note that the return value equals the number of elements inserted.
1 if an element is inserted, and 0 if an existing element is updated
| Name | Description |
|---|---|
| key | key of the element to insert or update |
| value | value to assign or insert |