operator==,!=,<,<=,>,>=(std::thread::id)

bool operator==( thread::id lhs, thread::id rhs ) noexcept;
(1) (C++11 起)
bool operator!=( thread::id lhs, thread::id rhs ) noexcept;
(2) (C++11 起)
bool operator<( thread::id lhs, thread::id rhs ) noexcept;
(3) (C++11 起)
bool operator<=( thread::id lhs, thread::id rhs ) noexcept;
(4) (C++11 起)
bool operator>( thread::id lhs, thread::id rhs ) noexcept;
(5) (C++11 起)
bool operator>=( thread::id lhs, thread::id rhs ) noexcept;
(6) (C++11 起)

比较二个线程标识符。

1-2) 检查 lhsrhs 是否表示同一线程或均不表示线程。
3-6) 比较 lhsrhs ,以 lhsrhs 完全有顺序的方式。

目录

参数

lhs, rhs - 要比较的线程标识符

返回值

若对应关系成立则为 true ,否则为 false

复杂度

常数。

参阅

thrd_equalC 文档

版本历史

  • (当前 | 先前 2017年8月24日 (四) 04:50Fruderica讨论 | 贡献. . (1,235字节) (-656). . (撤销)
  • 当前 | 先前 2013年7月2日 (二) 11:35P12bot讨论 | 贡献 . . (1,891字节) (-194). . (Use {{lc}}. Update links. Various fixes.) (撤销)
  • 当前 | 先前 2012年11月2日 (五) 18:26P12bot讨论 | 贡献 . . (2,085字节) (+329). . (r2.7.3) (机器人添加:de, en, es, fr, it, ja, pt, ru) (撤销)
  • 当前 | 先前 2012年10月26日 (五) 03:32P12讨论 | 贡献 . . (1,756字节) (0). . (1个修订: Translate from the English version) (撤销)
  • 当前 | 先前) 2012年10月25日 (四) 12:00TranslationBot讨论 | 贡献. . (1,756字节) (+1,756). . (Translated from the English version using Google Translate)