[#BloombergLP-bdlcc-StripedUnorderedContainerImpl-insertUnique-07] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl.adoc[StripedUnorderedContainerImpl]::insertUnique :relfileprefix: ../../../ :mrdocs: Insert or update the element having the specified `key` and `value`. == Synopsis Declared in `<bdlcc_stripedunorderedcontainerimpl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::size_t insertUnique( KEY const& key, VALUE const& value); ---- == Description 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. == Return Value 1 if an element is inserted, and 0 if an existing element is updated == Parameters [cols="1,4"] |=== | Name| Description | *key* | key of the element to insert or update | *value* | value to assign or insert |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#