W3cubDocs

/C++

std::unique_lock::operator=

unique_lock& operator=( unique_lock&& other );
(since C++11)

Move assignment operator. Replaces the contents with those of other using move semantics.

If prior to the call *this has an associated mutex and has acquired ownership of it, the mutex is unlocked.

Parameters

other - another unique_lock to replace the state with

Return value

*this.

Exceptions

noexcept specification:
noexcept
(until C++14)
Throws nothing (since C++14)

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/thread/unique_lock/operator=