首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

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检查lhsrhs表示相同的线程,或者不表示线程。

3-6%29比较lhsrhs以这样的方式,lhsrhs是完全有序的。

参数

lhs, rhs

-

thread identifiers to compare

返回值

true对应的关系是否成立,false否则。

例外

noexcept规格:

noexcept

复杂性

常量。

另见

C文件[医]平等

*。

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com