std::swap(std::multiset) (3) - Linux Manuals
std::swap(std::multiset): std::swap(std::multiset)
NAME
std::swap(std::multiset) - std::swap(std::multiset)
Synopsis
template< class Key, class Compare, class Alloc >
void swap( multiset<Key,Compare,Alloc>& lhs, (until C++17)
multiset<Key,Compare,Alloc>& rhs );
template< class Key, class Compare, class Alloc >
void swap( multiset<Key,Compare,Alloc>& lhs, (since C++17)
multiset<Key,Compare,Alloc>& rhs ) noexcept(/* see below */);
Specializes the std::swap algorithm for std::multiset. 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
swap (public member function)