public member function
<mutex>

std::unique_lock::~unique_lock

~unique_lock();
Destroy unique_lock
Destroys the unique_lock object.

If the object currently owns a lock on the managed mutex object, its unlock member is called before destroying the object.

Note that the managed mutex object is itself not destroyed.

Data races

The managed mutex object is accessed and modified (as an atomic operation, causing no data races).

Exception safety

No-throw guarantee: never throws exceptions.