|
step20
|
An O(1) algorithm for implementing the LFU cache eviction scheme. More...
#include <least_frequently_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 LFU cache eviction scheme.
|
inlineexplicit |
|
default |
|
delete |
|
virtualdefault |
|
inline |
|
inline |
Basic exception guarantee. Evicted item is not restored if an exception occurs.
|
default |
|
delete |