std::error_category::operator==,!=,<
提供: cppreference.com
<tbody>
</tbody>
bool operator==( const error_category& rhs ) const noexcept; |
(1) | (C++11以上) |
bool operator!=( const error_category& rhs ) const noexcept; |
(2) | (C++11以上) |
bool operator<( const error_category& rhs ) const noexcept; |
(3) | (C++11以上) |
別のエラーカテゴリと比較します。
1)
*this と rhs が同じオブジェクトを参照するかどうか調べます。2)
*this と rhs が同じオブジェクトを参照するかどうか調べます。3)
this と &rhs の順序によって *this と rhs を順序付けます。 std::less<const error_category*>()(this, &rhs) と同等です。引数
| code | - | 比較するエラーコードを指定します |
| condition | - | 比較するエラーコンディションを指定します |
戻り値
1)
*this と rhs が同じオブジェクトを参照する場合は true、そうでなければ false。2)
*this と rhs が同じオブジェクトを参照しない場合は true、そうでなければ false。3)
this と &rhs の順序によって定義されるところにより *this が rhs より小さい場合は true。