operators (std::thread::id)
bool operator==( thread::id lhs, thread::id rhs ); | (1) | (since C++11) |
|---|---|---|
bool operator!=( thread::id lhs, thread::id rhs ); | (2) | (since C++11) |
bool operator<( thread::id lhs, thread::id rhs ); | (3) | (since C++11) |
bool operator<=( thread::id lhs, thread::id rhs ); | (4) | (since C++11) |
bool operator>( thread::id lhs, thread::id rhs ); | (5) | (since C++11) |
bool operator>=( thread::id lhs, thread::id rhs ); | (6) | (since C++11) |
比较两个线程标识符。
1-2%29检查lhs和rhs表示相同的线程,或者不表示线程。
3-6%29比较lhs和rhs以这样的方式,lhs和rhs是完全有序的。
参数
lhs, rhs | - | thread identifiers to compare |
|---|
返回值
true对应的关系是否成立,false否则。
例外
noexcept规格:
noexcept
复杂性
常量。
另见
C文件[医]平等
*。
© cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

