Documentation Home >> Headers >> <thread> Header >> std::thread >> std::thread Default Constructor

Construct a std::thread object without an associated thread of execution.

thread();

Effects:

Constructs a std::thread instance that has no associated thread of execution.

Postconditions:

For a newly-constructed std::thread object x, x.get_id()==id()

Throws:

Nothing

Header

#include <thread>

See Also