public member function
<thread>

std::thread::~thread

~thread();
Thread destructor
Destroys the thread object.

If the thread is joinable when destroyed, terminate() is called.

Exception safety

No-throw guarantee: never throws exceptions.

<thread>