Call the specified visitor for every item in this cache.
Declared in <bdlcc_cache.h>
template<class VISITOR>
void
visit(VISITOR& visitor) const;
Call the specified visitor for every item stored in this cache in the order of the eviction queue until visitor returns false. The VISITOR type must be a callable object that can be invoked in the same way as the function bool (const KEY&, const VALUE&).
| Name | Description |
|---|---|
| visitor | callable invoked for each key-value pair |