logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

__gnu_pbds::sample_update_policy.3cxx

Author

       Generated automatically by Doxygen for libstdc++ from the source code.

                                                    libstdc++             __gnu_pbds::sample_update_policy(3cxx)

Constructor & Destructor Documentation

__gnu_pbds::sample_update_policy::sample_update_policy()
       Default constructor.

   __gnu_pbds::sample_update_policy::sample_update_policy(constsample_update_policy&)
       Copy constructor.

Detailed Description

       A sample list-update policy.

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 shoule return true if the node should be moved to the front of the list.

   void__gnu_pbds::sample_update_policy::swap(sample_update_policy&other)[inline]
       Swaps content.

Member Typedef Documentation

typedefsome_metadata_type__gnu_pbds::sample_update_policy::metadata_type[protected]
       Metadata on which this functor operates.

Name

       __gnu_pbds::sample_update_policy - A sample list-update policy.

Synopsis

       #include <sample_update_policy.hpp>

   PublicMemberFunctionssample_update_policy ()
           Default constructor.
       sample_update_policy (const sample_update_policy &)
           Copy constructor.
       void swap (sample_update_policy &other)
           Swaps content.

   ProtectedTypes
       typedef some_metadata_type metadata_type
           Metadata on which this functor operates.

   ProtectedMemberFunctionsmetadata_typeoperator() () 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 shoule return true if the node should be moved to the front of the list.

See Also