libboxes
boxes is a set of specialised containers built on top of STL
List of all members
boxes::cache::policy::MRU< K, V > Class Template Reference

Constructs a new MRU eviction policy. More...

#include <cache.hpp>

Inherits boxes::cache::policy::LRU< K, V >.

Detailed Description

template<typename K, typename V>
class boxes::cache::policy::MRU< K, V >

Constructs a new MRU eviction policy.

Attempts to insert more than maxSize elements into the cache will result in eviction of the most recently used element.

When iterating over the cache, the most recently used (or inserted) element is stored at the back of the queue.

Both LRU and MRU policies return the least likely to be evicted element as the front element.

Definition at line 214 of file cache.hpp.


The documentation for this class was generated from the following file: