std::unordered_multiset::swap
From cppreference.com
< cpp | container | unordered multiset
| void swap( unordered_multiset& other ); |
(since C++11) | |
Exchanges the contents of the container with those of other.
All iterators and references remain valid. The past-the-end iterator is invalidated.
The behavior is undefined if get_allocator() != other.get_allocator() and std::allocator_traits<allocator_type>::propagate_on_container_swap::value != true.
Contents |
Parameters
| other | - | container to exchange the contents with |
Return value
(none)
Exceptions
Complexity
Constant
See also
| specializes the std::swap algorithm (function template) | |