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

std::error_category::operators

bool operator==( const error_category& rhs ) const;

(1)

(since C++11)

bool operator!=( const error_category& rhs ) const;

(2)

(since C++11)

bool operator<( const error_category& rhs ) const;

(3)

(since C++11)

与另一个错误类别进行比较。

1%29检查是否*thisrhs引用同一个对象。

2%29检查是否*thisrhs不要引用同一个对象。

3%29份订单*thisrhs按…的顺序this&rhs相当于std::less<const error_category*>()(this, &rhs)...

参数

code

-

specifies the error code to compare

condition

-

specifies the error condition to compare

返回值

1%29true如果*thisrhs引用同一个对象,false否则。

2%29true如果*thisrhs不要引用同一个对象,false否则。

3%29true如果*this小于rhs按…的顺序定义this&rhs...

例外

noexcept规格:

noexcept

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

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

扫码关注腾讯云开发者

领取腾讯云代金券