__GNU_PBDS::LU_MOVE_TO_FRONT_POLICY(3cxx)
okay so bestie, welcome to the 3cxx manual page for __gnu_pbds::lu_move_to_front_policy< _Alloc > β yes, the whole title is a mouthful, and yes, it's iconic. π
π NAME π
__gnu_pbds::lu_move_to_front_policy< _Alloc > β that's the name, no cap.
β¨ SYNOPSIS β¨
First thing's first, include this header:
#include <list_update_policy.hpp
Then you get the public types and public member functions, and they're lowkey the whole vibe.
πΈ Public Types πΈ
typedef _Alloc allocator_typeβ the allocator type. It's giving "bring your own allocator, slay."typedef detail::rebind_traits< _Alloc, metadata_type >::reference metadata_referenceβ a reference to metadata on which this functor operates. π«Άtypedef null_type metadata_typeβ metadata on which this functor operates. Yes, the metadata type is literallynull_type.
π Public Member Functions π
metadata_type operator() () constβ creates a metadata object. Cute, simple, done.bool operator() (metadata_reference r_metadata) constβ decides whether a metadata object should be moved to the front of the list. The drama of it all.
π¦ Detailed Description π¦
Here's the big template energy:
template<typename _Alloc = std::allocator<char>>
class __gnu_pbds::lu_move_to_front_policy< _Alloc >
And the description is literally: "A list-update policy that unconditionally moves elements to the front of the list. A null type means that each link in a list-based container does not actually need metadata."
So yeah β unconditionally. It does not ask questions. It does not do a vibe check. It moves elements to the front, periodt. And the null type situation means each link in a list-based container does not actually need metadata. β¨
π Member Typedef Documentation π
metadata_referenceβ here's the exact typedef:
template<typename _Alloc = std::allocator<char>> typedef
detail::rebind_traits<_Alloc,metadata_type>::reference
__gnu_pbds::lu_move_to_front_policy< _Alloc >::metadata_reference
It's a reference to metadata on which this functor operates. Obsessed with a clear reference type, honestly. π
metadata_typeβ and the exact typedef for this one:
template<typename _Alloc = std::allocator<char>> typedef null_type
__gnu_pbds::lu_move_to_front_policy< _Alloc >::metadata_type
It's the metadata on which this functor operates. Short, sweet, and null-type coded. π¦
π Member Function Documentation π
operator() () constβ the no-argument version:
template<typename _Alloc = std::allocator<char>> metadata_type
__gnu_pbds::lu_move_to_front_policy< _Alloc >::operator() () const
[inline] β creates a metadata object. It's a little factory moment. π
operator() (metadata_reference r_metadata) constβ the decision-making version:
template<typename _Alloc = std::allocator<char>> bool
__gnu_pbds::lu_move_to_front_policy< _Alloc >::operator()
(metadata_reference r_metadata) const
[inline] β decides whether a metadata object should be moved to the front of the list. Main character behavior, fr fr. π
π Author π
The author section is literally:
Generated automatically by Doxygen for libstdc++ from the source code.
So it's a Doxygen-generated baddie. We respect the automation. π
Bye bestie π«Ά β this page was generated automatically by Doxygen for libstdc++ from the source code, and it's serving manual-section 3cxx energy. The footer stamp reads libstd__gnu_pbds::lu...olicy< _Alloc >(3cxx); no separate date was shown in this copy. Slay, and stay hydrated. πβ¨
π¦ 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