# std::lock_guard<Mutex>::~lock_guard

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

Releases the ownership of the owned mutex.

## Official Specification Summary (cppreference)

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

Releases the ownership of the owned mutex.

Effectively calls `m.unlock()` where `m` is the mutex passed to the `lock_guard`'s constructor.

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