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

Construct a std::thread::id object that doesn't represent any thread of execution.

id();

Effects:

Constructs a std::thread::id instance that has the singular not a thread value.

Throws:

Nothing

Note:

All default-constructed std::thread::id instances store the same value.

Header

#include <thread>

See Also