Standard C++ Library Class Reference

};
// Non-member Operators
template <class Key, class T,class Compare, class Allocator>
bool operator== (const multimap<Key, T, Compare, Allocator>&,
const multimap<Key, T, Compare, Allocator>&);
template <class Key, class T, class Compare, class Allocator>
bool operator< (const multimap<Key, T, Compare, Allocator>&,
const multimap<Key, T, Compare, Allocator>&);
// Specialized Algorithms
template <class Key, class T, class Compare, class Allocator>
void swap (multimap<Key, T, Compare, Allocator>&,
multimap<Key, T, Compare, Allocator>&;
Constructors and Destructors
explicit multimap (const Compare& comp = Compare(),
const Allocator& alloc = Allocator());
Default constructor. Constructs an empty multimap that will use the optional relation comp to
order keys and the allocator alloc for all storage management.
template <class InputIterator>
multimap (InputIterator first,
InputIterator last,
const Compare& comp = Compare()
const Allocator& alloc = Allocator ());
Constructs a multimap containing values in the range [first, last). Creation of the new multimap
is only guaranteed to succeed if the iterators first and last return values of type pair<class Key,
class T>.
multimap (const multimap<Key, T, Compare, Allocator>& x);
Copy constructor. Creates a new multimap by copying all pairs of key and value from x.
~multimap ();
The destructor. Releases any allocated memory for this multimap.
Assignment Operator
multimap<Key, T, Compare, Allocator>&
operator= (const multimap<Key, T, Compare, Allocator>& x);
Replaces the contents of *this with a copy of the multimap x.
Allocator
allocator_type get_allocator () const;
Returns a copy of the allocator used by self for storage management.