cpp / latest / thread / unique_lock / ~unique_lock.html /

std::unique_lock<Mutex>::~unique_lock

~unique_lock();
(since C++11)

Destroys the lock. If *this has an associated mutex and has acquired ownership of it, the mutex is unlocked.

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/thread/unique_lock/%7Eunique_lock