Documentation Home >> Headers >> <mutex> Header >> std::unique_lock >> std::unique_lock Deferred-lock Constructor

Construct a std::unique_lock instance that does not own the lock on the supplied mutex.

unique_lock(mutex_type& m,std::defer_lock_t);

Effects:

Constructs a std::unique_lock instance that references the supplied mutex.

Throws:

Nothing.

Postcondition:

this->owns_lock()==false, this->mutex()==&m.

Header

#include <mutex>

See Also