STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Protected Attributes | Friends | List of all members
_Tmap_traits< _Kty, _Ty, _Pr, _Alloc, _Mfl >::value_compare Class Reference

Public Types

typedef value_type first_argument_type
 
typedef value_type second_argument_type
 
typedef bool result_type
 

Public Member Functions

bool operator() (const value_type &_Left, const value_type &_Right) const
 
 value_compare (key_compare _Pred)
 

Protected Attributes

key_compare comp
 

Friends

class _Tmap_traits< _Kty, _Ty, _Pr, _Alloc, _Mfl >
 

Member Typedef Documentation

template<class _Kty , class _Ty , class _Pr , class _Alloc , bool _Mfl>
typedef value_type _Tmap_traits< _Kty, _Ty, _Pr, _Alloc, _Mfl >::value_compare::first_argument_type
template<class _Kty , class _Ty , class _Pr , class _Alloc , bool _Mfl>
typedef bool _Tmap_traits< _Kty, _Ty, _Pr, _Alloc, _Mfl >::value_compare::result_type
template<class _Kty , class _Ty , class _Pr , class _Alloc , bool _Mfl>
typedef value_type _Tmap_traits< _Kty, _Ty, _Pr, _Alloc, _Mfl >::value_compare::second_argument_type

Constructor & Destructor Documentation

template<class _Kty , class _Ty , class _Pr , class _Alloc , bool _Mfl>
_Tmap_traits< _Kty, _Ty, _Pr, _Alloc, _Mfl >::value_compare::value_compare ( key_compare  _Pred)
inline
51  : comp(_Pred)
52  { // construct with specified predicate
53  }
_FwdIt const _Ty _Pr _Pred
Definition: algorithm:1985
key_compare comp
Definition: map:56

Member Function Documentation

template<class _Kty , class _Ty , class _Pr , class _Alloc , bool _Mfl>
bool _Tmap_traits< _Kty, _Ty, _Pr, _Alloc, _Mfl >::value_compare::operator() ( const value_type _Left,
const value_type _Right 
) const
inline
46  { // test if _Left precedes _Right by comparing just keys
47  return (comp(_Left.first, _Right.first));
48  }
constexpr const _Ty &() _Left
Definition: algorithm:3722
key_compare comp
Definition: map:56
constexpr const _Ty &() _Right
Definition: algorithm:3723

Friends And Related Function Documentation

template<class _Kty , class _Ty , class _Pr , class _Alloc , bool _Mfl>
friend class _Tmap_traits< _Kty, _Ty, _Pr, _Alloc, _Mfl >
friend

Member Data Documentation

template<class _Kty , class _Ty , class _Pr , class _Alloc , bool _Mfl>
key_compare _Tmap_traits< _Kty, _Ty, _Pr, _Alloc, _Mfl >::value_compare::comp
protected

The documentation for this class was generated from the following file: