std::unique_lock<Mutex>::operator=
< cpp | thread | unique lock
unique_lock& operator=( unique_lock&& other );
|
(C++11 起) | |
移动赋值运算符。用移动语义以 other
的内容替换内容。
若调用前 *this 拥有关联互斥并获得其所有权,则解锁互斥。
参数
other | - | 以之替换状态的另一 unique_lock |
返回值
*this
异常
不抛出