template<typename Value, typename IndexSpecifierList, typename Allocator>
class multi_index_lru::ExpirableContainer< Value, IndexSpecifierList, Allocator >
MultiIndex LRU expirable container.
Definition at line 20 of file expirable_container.hpp.
|
| | ExpirableContainer (size_t max_size, std::chrono::milliseconds ttl) |
| |
| template<typename... Args> |
| auto | emplace (Args &&... args) |
| |
| bool | insert (const Value &value) |
| |
| bool | insert (Value &&value) |
| |
| template<typename Tag, typename Key> |
| auto | find (const Key &key) |
| |
| template<typename Tag, typename Key> |
| auto | find_no_update (const Key &key) const |
| |
| template<typename Tag, typename Key> |
| auto | equal_range (const Key &key) |
| |
| template<typename Tag, typename Key> |
| auto | equal_range_no_update (const Key &key) const |
| |
| template<typename Tag, typename Key> |
| bool | contains (const Key &key) |
| |
| template<typename Tag, typename Key> |
| bool | contains_no_update (const Key &key) const |
| |
| template<typename IteratorType> |
| bool | erase (IteratorType it) |
| |
| template<typename Tag, typename Key> |
| bool | erase (const Key &key) |
| |
| std::size_t | size () const noexcept |
| |
| bool | empty () const noexcept |
| |
| std::size_t | capacity () const noexcept |
| |
| void | set_capacity (std::size_t new_capacity) |
| |
| void | shrink_to_fit () |
| | Clears the internal nodes pool.
|
| |
| void | clear () |
| |
| template<typename Tag> |
| auto | end () |
| |
| void | cleanup_expired () |
| | Removes all expired items from container.
|
| |
template<typename Value, typename IndexSpecifierList, typename Allocator>
template<typename Tag, typename Key>
Removes the key from container, leaving the node in an internal pool. The key and value are not destroyed and are reused on next insertion.
Definition at line 118 of file expirable_container.hpp.
template<typename Value, typename IndexSpecifierList, typename Allocator>
template<typename IteratorType>
Removes the it from container, leaving the node in an internal pool. The key and value are not destroyed and are reused on next insertion.
Definition at line 111 of file expirable_container.hpp.