Standard C++ Library Reference ISO/IEC (VERSION3)
operator==
template<class Key, class Tr, class Alloc>
 bool operator==(
 const hash_set <Key, Tr, Alloc>& left,
 const hash_set <Key, Tr, Alloc>& right);
template<class Key, class Tr, class Alloc>
 bool operator==(
 const hash_multiset <Key, Tr, Alloc>& left,
 const hash_multiset <Key, Tr, Alloc>& right);
The first template function overloads operator== to compare two objects of template class
hash_set. The second template function overloads operator== to compare two objects of
template class hash_multiset. Both functions return left.size() ==
right.size() && equal(left. begin(), left. end(),
right.begin()).
operator<
template<class Key, class Tr, class Alloc>
 bool operator<(
 const hash_set <Key, Tr, Alloc>& left,
 const hash_set <Key, Tr, Alloc>& right);
template<class Key, class Tr, class Alloc>
 bool operator<(
 const hash_multiset <Key, Tr, Alloc>& left,
 const hash_multiset <Key, Tr, Alloc>& right);
The first template function overloads operator< to compare two objects of template class
hash_set. The second template function overloads operator< to compare two objects of
template class hash_multiset. Both functions return
lexicographical_compare(left. begin(), left. end(),
right.begin(), right.end(), left.value_comp()).
operator<=
template<class Key, class Tr, class Alloc>
 bool operator<=(
 const hash_set <Key, Tr, Alloc>& left,
 const hash_set <Key, Tr, Alloc>& right);
template<class Key, class Tr, class Alloc>
 bool operator<=(










