operators (std::thread::id)
运算符=,%21=,<,<=,>=%28std::线程::id%29
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。