Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
Miscellaneous
STL Containers
bitset
deque
list
map
multimap
multiset
priority_queue
queue
set
stack
vector
multimap
comparison operators
multimap::multimap
multimap::~multimap
member functions:
multimap::begin
multimap::clear
multimap::count
multimap::empty
multimap::end
multimap::equal_range
multimap::erase
multimap::find
multimap::get_allocator
multimap::insert
multimap::key_comp
multimap::lower_bound
multimap::max_size
multimap::operator=
multimap::rbegin
multimap::rend
multimap::size
multimap::swap
multimap::upper_bound
multimap::value_comp


comparison operators

function
<map>
template <class Key, class T, class Compare, class Allocator>
  bool operator== ( const multimap<Key,T,Compare,Allocator>& x,
                    const multimap<Key,T,Compare,Allocator>& y );
template <class Key, class T, class Compare, class Allocator>
  bool operator<  ( const multimap<Key,T,Compare,Allocator>& x,
                    const multimap<Key,T,Compare,Allocator>& y );
template <class Key, class T, class Compare, class Allocator>
  bool operator!= ( const multimap<Key,T,Compare,Allocator>& x,
                    const multimap<Key,T,Compare,Allocator>& y );
template <class Key, class T, class Compare, class Allocator>
  bool operator>  ( const multimap<Key,T,Compare,Allocator>& x,
                    const multimap<Key,T,Compare,Allocator>& y );
template <class Key, class T, class Compare, class Allocator>
  bool operator>= ( const multimap<Key,T,Compare,Allocator>& x,
                    const multimap<Key,T,Compare,Allocator>& y );
template <class Key, class T, class Compare, class Allocator>
  bool operator<= ( const multimap<Key,T,Compare,Allocator>& x,
                    const multimap<Key,T,Compare,Allocator>& y );

Global comparison operator functions

These overloaded global operator functions perform the appropriate comparison operation between multimap containers x and y.

Operations == and != are performed by comparing the elements using algorithm equal.

Operations <, >, <= and >= are performed by using algorithm lexicographical_compare, which requires that the type of the elements (T) has the < operation (less-than) defined between two objects of that type.

These operators are overloaded in header .

Parameters

x, y
multimap containers, having both the same template parameters (Key, T, Compare and Allocator).

Return Value

true if the condition holds, and false otherwise.