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










