.TH "__gnu_pbds::lu_counter_policy< Max_Count, _Alloc >" 3cxx "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME __gnu_pbds::lu_counter_policy< Max_Count, _Alloc > .SH SYNOPSIS .br .PP .PP \fC#include \fP .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 \fBdetail::rebind_traits\fP< _Alloc, \fBmetadata_type\fP >::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\&. .SH "Member Typedef Documentation" .PP .SS "template> typedef \fBdetail::rebind_traits\fP<_Alloc,\fBmetadata_type\fP>::reference \fB__gnu_pbds::lu_counter_policy\fP< Max_Count, _Alloc >::metadata_reference" .PP Reference to metadata on which this functor operates\&. .SS "template> typedef \fBdetail::lu_counter_metadata\fP \fB__gnu_pbds::lu_counter_policy\fP< Max_Count, _Alloc >::metadata_type" .PP Metadata on which this functor operates\&. .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\&. .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 References \fB__gnu_pbds::lu_counter_policy< Max_Count, _Alloc >::max_count\fP\&. .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 References \fB__gnu_pbds::lu_counter_policy< Max_Count, _Alloc >::max_count\fP\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.