__gnu_pbds::lu_move_to_front_policy< _Alloc >(3) Library Functions Manual __gnu_pbds::lu_move_to_front_policy< _Alloc >(3)

__gnu_pbds::lu_move_to_front_policy< _Alloc >

#include <list_update_policy.hpp>


typedef _Alloc allocator_type
typedef detail::rebind_traits< _Alloc, metadata_type >::reference metadata_reference
Reference to metadata on which this functor operates. typedef null_type metadata_type
Metadata on which this functor operates.


metadata_type operator() () const
Creates a metadata object. bool operator() (metadata_reference r_metadata) const
Decides whether a metadata object should be moved to the front of the list.

class __gnu_pbds::lu_move_to_front_policy< _Alloc >"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.

template<typename _Alloc = std::allocator<char>> typedef detail::rebind_traits<_Alloc,metadata_type>::reference __gnu_pbds::lu_move_to_front_policy< _Alloc >::metadata_reference

Reference to metadata on which this functor operates.

template<typename _Alloc = std::allocator<char>> typedef null_type __gnu_pbds::lu_move_to_front_policy< _Alloc >::metadata_type

Metadata on which this functor operates.

Creates a metadata object.

Decides whether a metadata object should be moved to the front of the list.

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

libstdc++