std::error_code
提供: cppreference.com
|
|
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
| ヘッダ <system_error> で定義
|
||
| class error_code; |
(C++11およびそれ以降) | |
std::error_code is a platform-dependent error code. Each std::error_code object holds a pair of error code originating from the operating system, or some low-level interface and a pointer to an object of type std::error_category, which corresponds to the said interface. The error code values may be not unique across different error categories.
[編集] メンバ関数
| エラー·コードを作成します Original: constructs an error code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
| 別のエラー·コードを割り当てます Original: assigns another error code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
| 別のエラー·コードを割り当てます Original: assigns another error code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
Original: Modifiers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| generic_categoryの値を0にerror_codeを設定します Original: sets the error_code to value 0 in generic_category The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
Original: Observers The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| ERROR_CODEの値を取得します Original: obtains the value of the error_code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
| このERROR_CODEためerror_categoryを取得します Original: obtains the error_category for this error_code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
| このERROR_CODEためerror_conditionを取得します Original: obtains the error_condition for this error_code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
| このerror_codeを説明するための文字列を取得します Original: obtains the explanatory string for this error_code The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
| 値が非ゼロであるかどうかをチェックします Original: checks if the value is non-zero The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (パブリックメンバ関数) | |
[編集] 非メンバ関数
2つの error_code を比較します (関数) | |
| 値とカテゴリ名を出力ストリームに出力します (関数) | |
| (C++11) |
error_categoryからのエラー·コードを作成します Original: creates an error code from an error_category The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) |
[編集] ヘルパークラス
| (C++11) |
error_code 用の列挙型としてのクラスを識別します (クラステンプレート) |
| (C++11) |
std::error_code に対するハッシュサポート (クラステンプレートの特殊化) |
[編集] 参照
| (C++11) |
移植性のあるエラーコードを保持します (クラス) |
| (C++11) |
エラーカテゴリのための基底クラス (クラス) |