stdswapstdunordered_multimap(3)
std::swap(std::unordered_multimap) - std::swap(std::unordered_multimap)
Synopsis
template <class Key, class T, class Hash, class KeyEqual, class Alloc>
(since C++ 11)
void swap(unordered_multimap<Key, T, Hash, KeyEqual, Alloc> &lhs, (until C++ 17)
unordered_multimap<Key, T, Hash, KeyEqual, Alloc> &rhs);
template <class Key, class T, class Hash, class KeyEqual, class Alloc>
void swap(unordered_multimap<Key, T, Hash, KeyEqual, Alloc> &lhs, (since C++ 17)
unordered_multimap<Key, T, Hash, KeyEqual, Alloc> &rhs) noexcept(/* see below */);Specializes the std::swap algorithm for std::unordered_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