.TH "__gnu_pbds::lu_counter_policy< Max_Count, _Alloc >" 3cxx "Sun Feb 7 2021" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME __gnu_pbds::lu_counter_policy< Max_Count, _Alloc > .SH SYNOPSIS .br .PP .PP Inherits \fB__gnu_pbds::detail::lu_counter_policy_base< _Alloc::size_type >\fP\&. .SS "Public Types" .in +1c .ti -1c .RI "enum { \fBmax_count\fP }" .br .ti -1c .RI "typedef _Alloc \fBallocator_type\fP" .br .ti -1c .RI "typedef __rebind_m::other::reference \fBmetadata_reference\fP" .br .RI "Reference to metadata on which this functor operates\&. " .ti -1c .RI "typedef \fBdetail::lu_counter_metadata\fP< size_type > \fBmetadata_type\fP" .br .RI "Metadata on which this functor operates\&. " .ti -1c .RI "typedef allocator_type::size_type \fBsize_type\fP" .br .in -1c .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBmetadata_type\fP \fBoperator()\fP () const" .br .RI "Creates a metadata object\&. " .ti -1c .RI "bool \fBoperator()\fP (\fBmetadata_reference\fP r_data) const" .br .RI "Decides whether a metadata object should be moved to the front of the list\&. " .in -1c .SS "Private Member Functions" .in +1c .ti -1c .RI "bool \fBoperator()\fP (Metadata_Reference r_data, size_type m_max_count) const" .br .ti -1c .RI "lu_counter_metadata< size_type > \fBoperator()\fP (size_type max_size) const" .br .in -1c .SH "Detailed Description" .PP .SS "template> .br 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\&. .PP Definition at line 92 of file list_update_policy\&.hpp\&. .SH "Member Typedef Documentation" .PP .SS "template> typedef __rebind_m::other::reference \fB__gnu_pbds::lu_counter_policy\fP< Max_Count, _Alloc >::\fBmetadata_reference\fP" .PP Reference to metadata on which this functor operates\&. .PP Definition at line 115 of file list_update_policy\&.hpp\&. .SS "template> typedef \fBdetail::lu_counter_metadata\fP \fB__gnu_pbds::lu_counter_policy\fP< Max_Count, _Alloc >::\fBmetadata_type\fP" .PP Metadata on which this functor operates\&. .PP Definition at line 107 of file list_update_policy\&.hpp\&. .SH "Member Enumeration Documentation" .PP .SS "template> anonymous enum" .PP \fBEnumerator\fP .in +1c .TP \fB\fImax_count \fP\fP When some element is accessed this number of times, it will be moved to the front of the list\&. .PP Definition at line 99 of file list_update_policy\&.hpp\&. .SH "Member Function Documentation" .PP .SS "template> \fBmetadata_type\fP \fB__gnu_pbds::lu_counter_policy\fP< Max_Count, _Alloc >::operator() () const\fC [inline]\fP" .PP Creates a metadata object\&. .PP Definition at line 119 of file list_update_policy\&.hpp\&. .PP References __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >::max_count\&. .SS "template> bool \fB__gnu_pbds::lu_counter_policy\fP< Max_Count, _Alloc >::operator() (\fBmetadata_reference\fP r_data) const\fC [inline]\fP" .PP Decides whether a metadata object should be moved to the front of the list\&. .PP Definition at line 125 of file list_update_policy\&.hpp\&. .PP References __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >::max_count\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.