在线文档教程
C++
容器 | Containers

std::swap(std::unordered_multiset)

STD::交换%28 std::无序[医]多集%29

template< class Key, class Hash, class KeyEqual, class Alloc > void swap( unordered_multiset& lhs, unordered_multiset& rhs (since C++11) (until C++17)
template< class Key, class Hash, class KeyEqual, class Alloc > void swap( unordered_multiset<Key,Hash,KeyEqual,Alloc>& lhs, unordered_multiset<Key,Hash,KeyEqual,Alloc>& rhs ) noexcept(/* see below */(since C++17)

专攻std::swap算法std::unordered_multiset.交换lhsrhs.电话lhs.swap(rhs)...

参数

lhs, rhs-containers whose contents to swap

返回值

%280%29

复杂性

常量。

例外

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

另见

swapswaps the contents (public member function)

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppreference.com/w/cpp/container/unorder[医]多套/SWAP 2