Quick Links:

bal | bbl | bdl | bsl

Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends

bsl::map< KEY, VALUE, COMPARATOR, ALLOCATOR >::value_compare Class Reference
[Component bslstl_map]

#include <bslstl_map.h>

List of all members.

Public Types

typedef bool result_type
typedef value_type first_argument_type
typedef value_type second_argument_type

Public Member Functions

 value_compare (const value_compare &original)
 ~value_compare ()
value_compareoperator= (const value_compare &rhs)
bool operator() (const value_type &x, const value_type &y) const

Protected Member Functions

 value_compare (COMPARATOR comparator)

Protected Attributes

COMPARATOR comp

Friends

class map

Detailed Description

template<class KEY, class VALUE, class COMPARATOR = std::less<KEY>, class ALLOCATOR = allocator<pair<const KEY, VALUE> >>
class bsl::map< KEY, VALUE, COMPARATOR, ALLOCATOR >::value_compare

This nested class defines a mechanism for comparing two objects of value_type by adapting an object of (template parameter) type COMPARATOR, which compares two objects of (template parameter) type KEY . Note that this class exactly matches its definition in the C++11 standard [map.overview]; otherwise, we would have implemented it as a separate component-local class.

See Component bslstl_map


Friends And Related Function Documentation

template<class KEY, class VALUE, class COMPARATOR = std::less<KEY>, class ALLOCATOR = allocator<pair<const KEY, VALUE> >>
friend class map [friend]

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