id
描述 (Description)
它是由thread :: get_id和this_thread :: get_id返回的这种类型的值来标识线程。
声明 (Declaration)
以下是std :: thread :: id的声明。
class thread::id;
C++11
class thread::id;
参数 (Parameters)
没有
返回值 (Return Value)
没有
非成员函数重载
bool operator== (thread::id lhs, thread::id rhs) noexcept;
bool operator!= (thread::id lhs, thread::id rhs) noexcept;
bool operator< (thread::id lhs, thread::id rhs) noexcept;
bool operator>= (thread::id lhs, thread::id rhs) noexcept;
bool operator> (thread::id lhs, thread::id rhs) noexcept;
bool operator>= (thread::id lhs, thread::id rhs) noexcept;