A list-update policy that moves elements to the front of the list based on the counter algorithm. More...
#include <list_update_policy.hpp>
Public Types | |
enum | { max_count = Max_Count } |
typedef _Alloc | allocator_type |
typedef __rebind_m::other::reference | metadata_reference |
Reference to metadata on which this functor operates. More... | |
typedef detail::lu_counter_metadata< size_type > | metadata_type |
Metadata on which this functor operates. More... | |
typedef allocator_type::size_type | size_type |
Public Member Functions | |
metadata_type | operator() () const |
Creates a metadata object. More... | |
bool | operator() (metadata_reference r_data) const |
Decides whether a metadata object should be moved to the front of the list. More... | |
Private Types | |
typedef _Alloc::template rebind< metadata_type > | __rebind_m |
typedef detail::lu_counter_policy_base< size_type > | base_type |
Private Member Functions | |
lu_counter_metadata< size_type > | operator() (size_type max_size) const |
bool | operator() (Metadata_Reference r_data, size_type m_max_count) const |
A list-update policy that moves elements to the front of the list based on the counter algorithm.
|
private |
typedef _Alloc __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >::allocator_type |
|
private |
typedef __rebind_m::other::reference __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >::metadata_reference |
Reference to metadata on which this functor operates.
typedef detail::lu_counter_metadata<size_type> __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >::metadata_type |
Metadata on which this functor operates.
typedef allocator_type::size_type __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >::size_type |
anonymous enum |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inline |
Creates a metadata object.
References __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >::max_count, and __gnu_pbds::detail::lu_counter_policy_base< Size_Type >::operator()().
|
inline |
Decides whether a metadata object should be moved to the front of the list.
References __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >::max_count, and __gnu_pbds::detail::lu_counter_policy_base< Size_Type >::operator()().