Share via


thread::id Class

Provides a unique identifier for each thread of execution in the process.

class thread::id {
   id() _NOEXCEPT;
};

Remarks

The default constructor creates an object that does not compare equal to the thread::id object for any existing thread.

All default-constructed thread::id objects compare equal.

Requirements

Header: thread

Namespace: std

See Also

Reference

thread Class

<thread>

thread::get_id Method