.TH "__gnu_pbds::sample_update_policy" 3cxx "Tue Jul 18 2023" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME __gnu_pbds::sample_update_policy \- A sample list-update policy\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBsample_update_policy\fP ()" .br .RI "Default constructor\&. " .ti -1c .RI "\fBsample_update_policy\fP (const \fBsample_update_policy\fP &)" .br .RI "Copy constructor\&. " .ti -1c .RI "void \fBswap\fP (\fBsample_update_policy\fP &other)" .br .RI "Swaps content\&. " .in -1c .SS "Protected Types" .in +1c .ti -1c .RI "typedef some_metadata_type \fBmetadata_type\fP" .br .RI "Metadata on which this functor operates\&. " .in -1c .SS "Protected 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 (metadata_reference) const" .br .RI "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 shoule return true if the node should be moved to the front of the list\&. " .in -1c .SH "Detailed Description" .PP A sample list-update policy\&. .SH "Member Typedef Documentation" .PP .SS "typedef some_metadata_type \fB__gnu_pbds::sample_update_policy::metadata_type\fP\fC [protected]\fP" .PP Metadata on which this functor operates\&. .SH "Constructor & Destructor Documentation" .PP .SS "__gnu_pbds::sample_update_policy::sample_update_policy ()" .PP Default constructor\&. .SS "__gnu_pbds::sample_update_policy::sample_update_policy (const \fBsample_update_policy\fP &)" .PP Copy constructor\&. .SH "Member Function Documentation" .PP .SS "\fBmetadata_type\fP __gnu_pbds::sample_update_policy::operator() () const\fC [protected]\fP" .PP Creates a metadata object\&. .SS "bool __gnu_pbds::sample_update_policy::operator() (metadata_reference) const\fC [protected]\fP" .PP 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 shoule return true if the node should be moved to the front of the list\&. .SS "void __gnu_pbds::sample_update_policy::swap (\fBsample_update_policy\fP & other)\fC [inline]\fP" .PP Swaps content\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.