operator== 运算符 (<thread>)

比较两个 thread::id 对象是否相等。

bool operator== (
   thread::id Left,
   thread::id Right) _NOEXCEPT

参数

  • Left
    thread::id 对象。

  • Right
    正确的 thread::id 对象。

返回值

true,如果两个对象表示执行同一线程,或者任何对象表示没有执行线程终止;否则,返回 false。

备注

此函数不引发任何异常。

要求

标头: 线程

命名空间: std

请参见

参考

<thread>

其他资源

C++ 标准库头文件