step20
|
An O(1) algorithm for implementing the LRU cache eviction scheme. More...
#include <least_recently_used.hpp>
Public Member Functions | |
cache (std::size_t capacity) | |
cache (cache &&)=default | |
cache & | operator= (cache &&)=default |
cache (const cache &)=delete | |
cache & | operator= (const cache &)=delete |
virtual | ~cache ()=default |
const T * | find (const Key &key) |
void | insert_or_assign (const Key &key, const T &val) |
An O(1) algorithm for implementing the LRU cache eviction scheme.
|
inlineexplicit |
|
default |
|
delete |
|
virtualdefault |
|
inline |
|
inline |
Basic exception guarantee. Inserted item remains if an exception occurs.
|
default |
|
delete |