libstdc++
|
A list-update policy that moves elements to the front of the list based on the counter algorithm.
Definition at line 93 of file list_update_policy.hpp.
typedef __rebind_m::other::reference __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >::metadata_reference |
Reference to metadata on which this functor operates.
Definition at line 116 of file list_update_policy.hpp.
typedef detail::lu_counter_metadata<size_type> __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >::metadata_type |
Metadata on which this functor operates.
Definition at line 108 of file list_update_policy.hpp.
anonymous enum |
max_count |
When some element is accessed this number of times, it will be moved to the front of the list. |
Definition at line 100 of file list_update_policy.hpp.
metadata_type __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >::operator() | ( | ) | const [inline] |
Creates a metadata object.
Definition at line 120 of file list_update_policy.hpp.
References __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >::max_count.
bool __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >::operator() | ( | metadata_reference | r_data | ) | const [inline] |
Decides whether a metadata object should be moved to the front of the list.
Definition at line 126 of file list_update_policy.hpp.
References __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >::max_count.