C++ Thread 库 - Id
描述
它是由 thread::get_id 和 this_thread::get_id 返回的这种类型的值来标识线程。
声明
以下是 std::thread::id 的声明。
class thread::id;
C++11
class thread::id;
参数
none
返回值
none
非成员函数重载
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;