__gnu_pbds::lu_counter_policy< Max_Count, _Alloc >(3cxx) | __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >(3cxx) |
__gnu_pbds::lu_counter_policy< Max_Count, _Alloc >
#include <list_update_policy.hpp>
Inherits __gnu_pbds::detail::lu_counter_policy_base< _Alloc::size_type >.
enum { max_count }
typedef _Alloc allocator_type
typedef detail::rebind_traits< _Alloc, metadata_type
>::reference metadata_reference
Reference to metadata on which this functor operates. typedef
detail::lu_counter_metadata< size_type > metadata_type
Metadata on which this functor operates. typedef allocator_type::size_type
size_type
metadata_type operator() () const
Creates a metadata object. bool operator() (metadata_reference
r_data) const
Decides whether a metadata object should be moved to the front of the list.
bool operator() (Metadata_Reference r_data, size_type
m_max_count) const
lu_counter_metadata< size_type > operator() (size_type max_size)
const
class __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >"A list-update policy that moves elements to the front of the list based on the counter algorithm.
Definition at line 91 of file list_update_policy.hpp.
Definition at line 95 of file list_update_policy.hpp.
Reference to metadata on which this functor operates.
Definition at line 114 of file list_update_policy.hpp.
Metadata on which this functor operates.
Definition at line 106 of file list_update_policy.hpp.
Definition at line 96 of file list_update_policy.hpp.
Enumerator
Definition at line 98 of file list_update_policy.hpp.
Creates a metadata object.
Definition at line 118 of file list_update_policy.hpp.
References __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >::max_count.
Decides whether a metadata object should be moved to the front of the list.
Definition at line 124 of file list_update_policy.hpp.
References __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >::max_count.
Generated automatically by Doxygen for libstdc++ from the source code.
Thu Feb 16 2023 | libstdc++ |