std::swap(std::shared_lock)
提供: cppreference.com
< cpp | thread | shared lock
template<class Mutex > void swap( shared_lock<Mutex>& lhs, | (C++14以上) | |
std::swap アルゴリズムを std::shared_lock に対して特殊化します。 lhs
と rhs
の状態を交換します。 実質的に lhs.swap(rhs) 呼びます。
目次 |
[編集]引数
lhs, rhs | - | 状態を入れ替えるロックラッパー |
[編集]戻り値
(なし)
[編集]例
This section is incomplete Reason: no example |
[編集]関連項目
データメンバを他の shared_lock と交換します (パブリックメンバ関数) |