libstdc++: __gnu_pbds::lu_counter_policy< Max_Count, _Alloc > Class Template Reference (original) (raw)

#include <[list_update_policy.hpp](a01256%5Fsource.html)>

Public Types
enum { max_count }
typedef _Alloc allocator_type
typedef detail::rebind_traits< _Alloc, metadata_type >::reference metadata_reference
typedef detail::lu_counter_metadata< size_type > metadata_type
typedef allocator_type::size_type size_type
Private Member Functions
bool operator() (Metadata_Reference r_data, size_type m_max_count) const
lu_counter_metadata< size_type > operator() (size_type max_size) const

template<std::size_t Max_Count = 5, typename _Alloc = std::allocator>
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.

allocator_type

template<std::size_t Max_Count = 5, typename _Alloc = std::allocator>

metadata_reference

template<std::size_t Max_Count = 5, typename _Alloc = std::allocator>

metadata_type

template<std::size_t Max_Count = 5, typename _Alloc = std::allocator>

size_type

template<std::size_t Max_Count = 5, typename _Alloc = std::allocator>

anonymous enum

template<std::size_t Max_Count = 5, typename _Alloc = std::allocator>

Enumerator
max_count When some element is accessed this number of times, it will be moved to the front of the list.

Definition at line 98 of file list_update_policy.hpp.

operator()() [1/2]

template<std::size_t Max_Count = 5, typename _Alloc = std::allocator>

operator()() [2/2]

template<std::size_t Max_Count = 5, typename _Alloc = std::allocator>


The documentation for this class was generated from the following file: