std::shared_lock::swap
template< class Mutex > void swap( shared_lock<Mutex>& other ); | | (since C++14) |
---|
交换锁对象的内部状态。
参数
other | - | the lock to swap the state with |
---|
返回值
%280%29
例外
noexcept
规格:
noexcept
例
另见
std::swap(std::shared_lock) | specialization of std::swap for shared_lock (function template) |
---|
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com