# std::unique_lock<Mutex>::~unique_lock

> C++ Atlas: `cppatlas.com/w/cpp/thread/unique_lock/~unique_lock` | Source: https://en.cppreference.com/w/cpp/thread/unique_lock/~unique_lock | Domain: Concurrency support | Standards: C++11

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

## Official Specification Summary (cppreference)

```cpp
~unique_lock(); // (since C++11)
```

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

---
Attribution: content from https://en.cppreference.com/w/cpp/thread/unique_lock/~unique_lock (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.