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_type. The member function operator() uses this object to compare the
sort-key components of two element.
hash_multimap::value_type
typedef pair<const Key, Ty> value_type;
The type describes an element of the controlled sequence.
operator!=
template<class Key, class Ty, class Tr, class Alloc>
bool operator!=(
const hash_map <Key, Ty, Tr, Alloc>& left,
const hash_map <Key, Ty, Tr, Alloc>& right);
template<class Key, class Ty, class Tr, class Alloc>
bool operator!=(
const hash_multimap <Key, Ty, Tr, Alloc>& left,
const hash_multimap <Key, Ty, Tr, Alloc>& right);
The template function returns !(left == right).
operator==
template<class Key, class Ty, class Tr, class Alloc>
bool operator==(
const hash_map <Key, Ty, Tr, Alloc>& left,
const hash_map <Key, Ty, Tr, Alloc>& right);
template<class Key, class Ty, class Tr, class Alloc>
bool operator==(
const hash_multimap <Key, Ty, Tr, Alloc>& left,
const hash_multimap <Key, Ty, Tr, Alloc>& right);
The first template function overloads operator== to compare two objects of template class