public member function
<mutex>

std::mutex::~mutex

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

If the object is locked on destruction, it causes undefined behavior.

Exception safety

If not locked, it never throws exceptions (no-throw guarantee).
Otherwise, undefined behavior.