template<typename Value, typename IndexSpecifierList, typename Allocator = std::allocator<Value>>
class multi_index_lru::Container< Value, IndexSpecifierList, Allocator >
MultiIndex LRU container.
Definition at line 21 of file container.hpp.
|
| | Container (size_t max_size) |
| |
| template<typename... Args> |
| auto | emplace (Args &&... args) |
| | Constructs element in-place.
|
| |
| 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) |
| | Returns range of matching elements, updates all.
|
| |
| template<typename Tag, typename Key> |
| auto | equal_range_no_update (const Key &key) const |
| | Returns range of matching elements without updates.
|
| |
| 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> |
| auto | 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 () const |
| | Returns end iterator for the specified Tag index.
|
| |
| auto | find_last_accessed_no_update () const |
| |
template<typename Value, typename IndexSpecifierList, typename Allocator = std::allocator<Value>>
template<typename Tag, typename Key>
Returns range of matching elements, updates all.
Definition at line 78 of file container.hpp.
template<typename Value, typename IndexSpecifierList, typename Allocator = std::allocator<Value>>
template<typename Tag, typename Key>
Returns range of matching elements without updates.
Definition at line 95 of file container.hpp.
template<typename Value, typename IndexSpecifierList, typename Allocator = std::allocator<Value>>
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 127 of file container.hpp.
template<typename Value, typename IndexSpecifierList, typename Allocator = std::allocator<Value>>
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 112 of file container.hpp.