public member function
<mutex>

std::lock_guard::~lock_guard

~lock_guard();
Destroy lock_guard (unlocking mutex)
Destroys the lock_guard object.

Before that, the destructor calls the unlock member of the mutex object it manages.

Note that this does not destroy the managed mutex object.

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.