Call the specified visitor for every item in this cache.
Synopsis
Declared in <bdlcc_cache.h>
template<class VISITOR>
void
visit(VISITOR& visitor) const;
Description
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&).
Parameters
Name |
Description |
visitor |
callable invoked for each key‐value pair |
Created with MrDocs