std::unique_lock<Mutex>::operator=

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

# Declarations

unique_lock& operator=( unique_lock&& other );

(since C++11)

# Parameters

# Return value

*this

# Notes

With a recursive mutex it is possible for both *this and other to own the same mutex before the assignment. In this case, *this will own the mutex after the assignment and other will not.

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
LWG 2104C++11the move assignment operator was noexcept, but it maythrow an exception in the case of undefined behavior[1]it is not noexcept