在线文档教程
C++
线程支持 | Thread support

std::swap(std::unique_lock)

STD::SWAP%28std::UNIQUE[医]锁%29

template< class Mutex > void swap( unique_lock& lhs, unique_lock& rhs (since C++11)

专攻std::swap算法std::unique_lock.交换lhs与...rhs.有效地打电话lhs.swap(rhs)...

参数

lhs, rhs-lock wrappers whose states to swap

返回值

%280%29

例外

noexcept规格:

noexcept

另见

swapswaps state with another std::unique_lock (public member function)

© cppreference.com

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

http://en.cppreference.com/w/cpp/线程/UNIQUE[医]锁/船闸2