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