Documentation Home >> Headers >> <thread> Header >> std::thread >> std::thread Destructor

Destroys a std::thread object.

~thread();

Effects:

Destroys *this. If *this has an associated thread of execution (this->joinable() would return true), calls std::terminate() to abort the program.

Throws:

Nothing.

Header

#include <thread>

See Also