Standard C++ Library Reference ISO/IEC (VERSION3)

hash_map. The second template function overloads operator== to compare two objects of
template class hash_multimap. Both functions return left.size() ==
right.size() && equal(left. begin(), left. end(),
right.begin()).
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
hash_map. The second template function overloads operator< to compare two objects of
template class hash_multimap. Both functions return
lexicographical_compare(left. begin(), left. end(),
right.begin(), right.end(), left.value_comp()).
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 !(right < left).
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>(