__GNU_PBDS::LU_COUNTER_POLICY(3cxx)
π NAME π
okay so bestie, we're in the 3cxx manual, and the page header is the extremely truncated __gnu_pbds::lu_...Count, _Alloc >(3cxx) β it literally prints that same truncated title twice, no cap π. The actual main character is __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >.
β¨ SYNOPSIS β¨
#include <list_update_policy.hpp>
Inherits __gnu_pbds::detail::lu_counter_policy_base< _Alloc::size_type >.
πΈ Public Types πΈ
enum { max_count }typedef _Alloc allocator_typetypedef detail::rebind_traits< _Alloc, metadata_type >::reference metadata_referenceβ the reference type for the metadata this functor operates on.typedef detail::lu_counter_metadata< size_type > metadata_typeβ the metadata type this functor operates on.typedef allocator_type::size_type size_type
π«Ά Public Member Functions π«Ά
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.
π Private Member Functions π
bool operator() (Metadata_Reference r_data, size_type m_max_count) constlu_counter_metadata< size_type > operator() (size_type max_size) const
π Detailed Description π
template<std::size_t Max_Count = 5, typename _Alloc = std::allocator<char>>
class __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >
The class describes itself as: βA list-update policy that moves elements to the front of the list based on the counter algorithm.β
π Member Typedef Documentation π
template<std::size_t Max_Count = 5, typename _Alloc = std::allocator<char>>
typedef detail::rebind_traits<_Alloc,metadata_type>::reference __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >::metadata_referenceβ the reference type pointing at the metadata this functor operates on.typedef detail::lu_counter_metadata<size_type> __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >::metadata_typeβ the metadata type this functor operates on.
β Member Enumeration Documentation β
template<std::size_t Max_Count = 5, typename _Alloc = std::allocator<char>>
anonymous enum
max_countβ when some element gets accessed this number of times, it will be moved to the front of the list.
π₯ Member Function Documentation π₯
π
operator() () const
template<std::size_t Max_Count = 5, typename _Alloc = std::allocator<char>>
metadata_type __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >::operator() () const [inline]
Creates a metadata object.
References __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >::max_count.
π
operator() (metadata_reference r_data) const
template<std::size_t Max_Count = 5, typename _Alloc = std::allocator<char>>
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.
References __gnu_pbds::lu_counter_policy< Max_Count, _Alloc >::max_count.
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
and that's the sign-off, bestie π«Ά the footer is the truncated libst__gnu_pbds::lu_...Count, _Alloc >(3cxx) line. Source/version is libstdc++, generated from the source code, and there's no date printed on the footer β so I'm not inventing one π. Byeeee π¦
π¦ where this page comes from
- debian trixie: libstdc++-12-doc 12.4.0-5
- debian trixie: libstdc++-13-doc 13.3.0-16
- debian trixie: libstdc++-14-doc 14.2.0-19
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2
- ubuntu noble: libstdc++-10-doc 10.5.0-4ubuntu2.1
- ubuntu noble: libstdc++-11-doc 11.4.0-9ubuntu1
- ubuntu noble: libstdc++-11-doc 11.5.0-1ubuntu1~24.04.1
- ubuntu noble: libstdc++-12-doc 12.3.0-17ubuntu1
- ubuntu noble: libstdc++-12-doc 12.4.0-2ubuntu1~24.04.1
- ubuntu noble: libstdc++-13-doc 13.2.0-23ubuntu4
- ubuntu noble: libstdc++-13-doc 13.3.0-6ubuntu2~24.04.1
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- ubuntu noble: libstdc++-14-doc 14.2.0-4ubuntu2~24.04.1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1
- ubuntu questing: libstdc++-11-doc 11.5.0-7ubuntu1.1
- ubuntu questing: libstdc++-12-doc 12.5.0-6ubuntu1
- ubuntu questing: libstdc++-13-doc 13.4.0-4ubuntu1
- ubuntu questing: libstdc++-14-doc 14.3.0-8ubuntu1
- ubuntu questing: libstdc++-15-doc 15.2.0-4ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms