__gnu_pbds::sample_update_policy(3) Library Functions Manual __gnu_pbds::sample_update_policy(3)

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

#include <sample_update_policy.hpp>


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


typedef some_metadata_type metadata_type
Metadata on which this functor operates.


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

A sample list-update policy.

Metadata on which this functor operates.

Default constructor.

Copy constructor.

metadata_type __gnu_pbds::sample_update_policy::operator() () const [protected]

Creates a metadata object.

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.

Swaps content.

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

libstdc++