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检查是否*this和rhs引用同一个对象。
2%29检查是否*this和rhs不要引用同一个对象。
3%29份订单*this和rhs按…的顺序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如果*this和rhs引用同一个对象,false否则。
2%29true如果*this和rhs不要引用同一个对象,false否则。
3%29true如果*this小于rhs按…的顺序定义this和&rhs...
例外
noexcept规格:
noexcept
© cppreference.com在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。
本文档系腾讯云开发者社区成员共同维护,如有问题请联系 cloudcommunity@tencent.com

