std::swap(std::unique_lock)
来自cppreference.com
< cpp | thread | unique lock
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| template< class Mutex > void swap( unique_lock<Mutex> &lhs, |
||
专为std::swapstd::unique_lock算法。交易
lhs的rhs的状态。有效地调用lhs.swap(rhs).Original:
Specializes the std::swap algorithm for std::unique_lock. Exchanges the state of
lhs with that of rhs. Effectively calls lhs.swap(rhs).The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目录 |
[编辑] 参数
| lhs, rhs | - | 锁定的状态交换的包装
Original: lock wrappers whose states to swap The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[编辑] 返回值
(无)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 例外
[编辑] 为例
| 本节是不完整的 原因: no example |
[编辑] 另请参阅
| 掉期国家与另一个std::unique_lock Original: swaps state with another std::unique_lock The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (公共成员函数) | |