std::swap(std::shared_lock)
STD::SWAP%28std::Shared[医]锁%29
template< class Mutex > void swap( shared_lock | | (since C++14) |
---|
专攻std::swap
算法std::shared_lock
.交换lhs
与...rhs
.有效地打电话lhs.swap(rhs)
...
参数
lhs, rhs | - | lock wrappers whose states to swap |
---|
返回值
%280%29
例外
noexcept
规格:
noexcept
例
另见
swap | swaps the data members with another shared_lock (public member function) |
---|
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。