std::shared_lock::swap

template< class Mutex >
void swap( shared_lock<Mutex>& other ) noexcept;
(C++14 起)

交换锁对象的内部状态。

目录

参数

other - 要交换状态的锁

返回值

(none)

示例

参阅

std::swapshared_lock 的特化
(函数模板)

版本历史

  • (当前 | 先前) 2017年8月24日 (四) 09:07Fruderica讨论 | 贡献. . (484字节) (+484). . (以“{{cpp/thread/shared_lock/title|swap}} {{cpp/thread/shared_lock/navbar}} {{ddcl | since=c++14 | template< class Mutex > void swap( shared_lock<Mutex>& other ) noexcep...”为内容创建页面)