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










