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