[#BloombergLP-bdlcc-StripedUnorderedContainerImpl-insertBulkUnique] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/StripedUnorderedContainerImpl.adoc[StripedUnorderedContainerImpl]::insertBulkUnique :relfileprefix: ../../../ :mrdocs: Insert or update unique keys from the range `[first, last)]`. == Synopsis Declared in `<bdlcc_stripedunorderedcontainerimpl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class RANDOM_ITER> std::size_t insertBulkUnique( RANDOM_ITER first, RANDOM_ITER last); ---- == Description The iterators provide read access to a sequence of `bsl::pair<KEY, VALUE>` objects. If an element having one of the keys already exists in this hash map, set the value attribute to the corresponding value from `data`. All insertions are done by the calling thread and the order of insertion is not specified. Return the number of elements inserted. The behavior is undefined unless `first <= last`. == Return Value number of elements inserted == Parameters [cols="1,4"] |=== | Name| Description | *first* | beginning of the key‐value range | *last* | end of the key‐value range |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#