[#BloombergLP-bdlcc-Cache-insertBulk-0d] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/Cache.adoc[Cache]::insertBulk :relfileprefix: ../../../ :mrdocs: `insertBulk` overloads == Synopses Declared in `<bdlcc_cache.h>` Insert the specified `data` (composed of Key‐Value pairs) into this cache. If a key already exists, then its value will be replaced with the value. Return the number of items successfully inserted. If an exception occurs during this action, we provide only the basic guarantee ‐ both this cache and `data` will be in some valid but unspecified state. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/bdlcc/Cache/insertBulk-03.adoc[insertBulk](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<bsl::vector<KVType>>] data); ---- [.small]#xref:BloombergLP/bdlcc/Cache/insertBulk-03.adoc[_» more..._]# Insert the specified `data` (composed of Key‐Value pairs) into this cache. If a key already exists, then its value will be replaced with the value. Return the number of items successfully inserted. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:BloombergLP/bdlcc/Cache/insertBulk-09.adoc[insertBulk](xref:bsl/vector-00d.adoc[bsl::vector<KVType>] const& data); ---- [.small]#xref:BloombergLP/bdlcc/Cache/insertBulk-09.adoc[_» more..._]# Insert the specified range of Key‐Value pairs specified by `[ begin, end )]` into this cache. If a key already exists, then its value will be replaced with the value. Return the number of items successfully inserted. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class INPUT_ITERATOR> int xref:BloombergLP/bdlcc/Cache/insertBulk-04.adoc[insertBulk]( INPUT_ITERATOR begin, INPUT_ITERATOR end); ---- [.small]#xref:BloombergLP/bdlcc/Cache/insertBulk-04.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#