STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Public Attributes | List of all members
_Umap_traits< _Kty, _Ty, _Tr, _Alloc, _Mfl >::value_compare Class Reference
Inheritance diagram for _Umap_traits< _Kty, _Ty, _Tr, _Alloc, _Mfl >::value_compare:
binary_function< value_type, value_type, bool >

Public Member Functions

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

Public Attributes

key_compare _Keycompobj
 

Additional Inherited Members

- Public Types inherited from binary_function< value_type, value_type, bool >
typedef value_type first_argument_type
 
typedef value_type second_argument_type
 
typedef bool result_type
 

Constructor & Destructor Documentation

template<class _Kty, class _Ty, class _Tr, class _Alloc, bool _Mfl>
_Umap_traits< _Kty, _Ty, _Tr, _Alloc, _Mfl >::value_compare::value_compare ( const key_compare _Keycomparg)
inline
50  : _Keycompobj(_Keycomparg)
51  { // construct with specified predicate
52  }
key_compare _Keycompobj
Definition: unordered_map:54

Member Function Documentation

template<class _Kty, class _Ty, class _Tr, class _Alloc, bool _Mfl>
bool _Umap_traits< _Kty, _Ty, _Tr, _Alloc, _Mfl >::value_compare::operator() ( const value_type _Left,
const value_type _Right 
) const
inline
45  { // test if _Left precedes _Right by comparing just keys
46  return (_Keycompobj(_Left.first, _Right.first));
47  }
key_compare _Keycompobj
Definition: unordered_map:54
const _Ty & _Right
Definition: algorithm:4087

Member Data Documentation

template<class _Kty, class _Ty, class _Tr, class _Alloc, bool _Mfl>
key_compare _Umap_traits< _Kty, _Ty, _Tr, _Alloc, _Mfl >::value_compare::_Keycompobj

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