The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

unique_lock::operator= Operator


Copies the stored mutex pointer and associated ownership status from a specified object.

unique_lock& operator=(
   unique_lock&& Other


A unique_lock object.

If the calling thread owns the previously associated mutex, before this method calls unlock on the mutex, it assigns the new values.

After the copy, this method sets Other to a default-constructed state.


Header: mutex

Namespace: std