Documentation Home >> Headers >> <mutex> Header >> std::lock_guard >> std::lock_guard Destructor

Destroys a std::lock_guard instance and unlocks the corresponding mutex.

~lock_guard();

Effects:

Calls m.unlock() for the mutex instance m supplied when *this was constructed.

Throws:

Nothing.

Header

#include <mutex>

See Also