名前空間
変種
操作

std::error_category::equivalent

提供: cppreference.com

 
 
 
 
std::error_category
メンバ関数
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
error_category::equivalent
 
virtual bool equivalent( int code,
                         const std::error_condition& condition ) const;
(1) (C++11およびそれ以降)
virtual bool equivalent( const std::error_code& code,
                         int condition ) const;
(2) (C++11およびそれ以降)
エラーコードは*thisによって表されるエラーカテゴリのエラー状態と等価であるかどうかを確認します.
Original:
Checks whether error code is equivalent to an error condition for the error category represented by *this.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
default_error_condition(code) == conditionに相当.
Original:
Equivalent to default_error_condition(code) == condition.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
*this == code.category() && code.value() == conditionに相当.
Original:
Equivalent to *this == code.category() && code.value() == condition.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] パラメータ

code -
比較するためにエラーコードを指定します
Original:
specifies the error code to compare
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
condition -
比較するエラー状態を指定します
Original:
specifies the error condition to compare
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 値を返します

trueエラーコードが*thisによって表されるエラーカテゴリに指定されたエラー状態と同等であれば、そうでなければfalse.
Original:
true if the error code is equivalent to the given error condition for the error category represented by *this, false otherwise.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[編集] 例外

noexcept 指定:  
noexcept