[#BloombergLP-bdlcc-Cache-eraseBulk-05]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlcc.adoc[bdlcc]::xref:BloombergLP/bdlcc/Cache.adoc[Cache]::eraseBulk
:relfileprefix: ../../../
:mrdocs:

Remove the items having the keys in the specified range&period;

== Synopsis

Declared in `&lt;bdlcc&lowbar;cache&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class INPUT&lowbar;ITERATOR&gt;
int
eraseBulk(
    INPUT&lowbar;ITERATOR begin,
    INPUT&lowbar;ITERATOR end);
----

== Description

Remove the items having the keys in the specified range `&lsqb; begin, end )&rsqb;`, from this cache&period; Invoke the post&hyphen;eviction callback for each removed item&period; Return the number of items successfully removed&period;

== Return Value

the number of items successfully removed

== Parameters

[cols="1,4"]
|===
| Name| Description
| *begin*
| beginning of the key range
| *end*
| end of the key range
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
