std::swap(std::multimap) (3) - Linux Manuals

std::swap(std::multimap): std::swap(std::multimap)

NAME

std::swap(std::multimap) - std::swap(std::multimap)

Synopsis


template< class Key, class T, class Compare, class Alloc >
void swap( multimap<Key,T,Compare,Alloc>& lhs, (until C++17)
multimap<Key,T,Compare,Alloc>& rhs );
template< class Key, class T, class Compare, class Alloc >
void swap( multimap<Key,T,Compare,Alloc>& lhs, (since C++17)
multimap<Key,T,Compare,Alloc>& rhs ) noexcept(/* see below */);


Specializes the std::swap algorithm for std::multimap. Swaps the contents of lhs and rhs. Calls lhs.swap(rhs).

Parameters


lhs, rhs - containers whose contents to swap

Return value


(none)

Complexity


Constant.

Exceptions


noexcept specification: (since C++17)
noexcept(noexcept(lhs.swap(rhs)))

See also


     swaps the contents
swap (public member function)