__gnu_pbds::sample_update_policy(3cxx)
π NAME π
okay so bestie, you opened the __gnu_pbds::sample_update_policy(3cxx) manual page and the main character is __gnu_pbds::sample_update_policy β described as βA sample list-update policy.β Thatβs the whole name reveal, no cap β¨.
π¦ SYNOPSIS π¦
Start here, bestie:
#include <sample_update_policy.hpp>
π«Ά Public Member Functions
sample_update_policy ()β default constructor. it does the default-constructor thing, periodt.sample_update_policy (const sample_update_policy &)β copy constructor. iconic copy behavior π .void swap (sample_update_policy &other)β swaps content. thatβs it, thatβs the function π«Ά.
π Protected Types
typedef some_metadata_type metadata_typeβ metadata on which this functor operates. lowkey important.
π§ Protected Member Functions
metadata_type operator() () constβ creates a metadata object.bool operator() (metadata_reference) constβ decides whether a metadata object should be moved to the front of the list. A list-update based containers object will call this method to decide whether to move a node to the front of the list. The method should returntrueif the node should be moved to the front of the list.
πΈ Detailed Description πΈ
A sample list-update policy. Thatβs the whole detailed description, bestie β short and slay β¨.
π¦ Member Typedef Documentation π¦
typedef some_metadata_type __gnu_pbds::sample_update_policy::metadata_type
[protected]
Metadata on which this functor operates. yes, itβs giving βmetadata on which this functor operatesβ again β because documentation loves a callback π.
π Constructor & Destructor Documentation π
__gnu_pbds::sample_update_policy::sample_update_policy ()
Default constructor. no notes, itβs just the default constructor π.
__gnu_pbds::sample_update_policy::sample_update_policy (const sample_update_policy &)
Copy constructor. copying is its whole personality here π«Ά.
π Member Function Documentation π
metadata_type __gnu_pbds::sample_update_policy::operator() () const
[protected]
Creates a metadata object.
bool __gnu_pbds::sample_update_policy::operator() (metadata_reference) const
[protected]
Decides whether a metadata object should be moved to the front of the list. A list-update based containers object will call this method to decide whether to move a node to the front of the list. The method should return true if the node should be moved to the front of the list. fr fr, thatβs the decision logic π.
void __gnu_pbds::sample_update_policy::swap (sample_update_policy & other)
[inline]
Swaps content.
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
mwah π source/version footer vibes: libstd__gnu_pbds::sample_update_policy(3cxx) β and the original footer isnβt handing out a date, bestie, so weβre not inventing one ππ
π¦ 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