BloombergLP::bdlcc::Cache::insertBulk

Insert the specified range of key-value pairs into this cache.

Synopsis

Declared in <bdlcc_cache.h>

template<class INPUT_ITERATOR>
int
insertBulk(
    INPUT_ITERATOR begin,
    INPUT_ITERATOR end);

Description

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.

Return Value

the number of items successfully inserted

Parameters

NameDescription
beginbeginning of the key-value range
endend of the key-value range