Standard C++ Library Reference ISO/IEC (VERSION3)
bool operator()(const value_type& left,
const value_type& right) const
{return (comp(left.first, right.first)); }
protected:
value_compare(key_compare pr)
: comp(pr) {}
key_compare comp;
};
The type describes a function object that can compare the sort keys in two elements to
determine their relative order in the controlled sequence. The function object stores an object
comp of type key_compare. The member function operator() uses this object to
compare the sort-key components of two element.
map::value_type
typedef pair<const Key, Ty> value_type;
The type describes an element of the controlled sequence.
multimap
allocator_type · begin · clear · const_iterator · const_pointer
· const_reference · const_reverse_iterator · count ·
difference_type · empty · end · equal_range · erase · find ·
get_allocator · insert · iterator · key_comp · key_compare ·
key_type · lower_bound · mapped_type · max_size · multimap ·
rbegin · reference · rend · reverse_iterator · size · size_type
· swap · upper_bound · value_comp · value_compare · value_type
template<class Key, class Ty, class Pr = less<Key>,
class Alloc = allocator<pair<const Key, Ty> > >
class multimap {
public:
typedef Key key_type;
typedef Ty mapped_type;
typedef Pr key_compare;
typedef Alloc allocator_type;
typedef pair<const Key, Ty> value_type;
class value_compare;
typedef Alloc::reference reference;