std::exit
提供: cppreference.com
![]() |
このページは、Google 翻訳を使って英語版から機械翻訳されました。
翻訳には誤りや奇妙な言い回しがあるかもしれません。文章の上にポインタをおくと、元の文章が見れます。誤りを修正して翻訳を改善する手助けをしてください。翻訳についての説明は、ここをクリックしてください。 |
Defined in header <cstdlib>
|
||
[[noreturn]] void exit( int exit_code ); |
(C++11およびそれ以降) | |
void exit( int exit_code ); |
(C++11以前) | |
発生するプログラムの正常終了を引き起こし.
Original:
Causes normal program termination to occur.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
いくつかのクリーンアップの手順が実行されます
Original:
Several cleanup steps are performed:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
- スレッドローカル記憶期間持つオブジェクトのデストラクタは呼ばれていますOriginal:destructors of objects with thread local 記憶期間 are calledThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 静的記憶域期間を持つオブジェクトのデストラクタが呼び出されますOriginal:destructors of objects with static storage duration are calledThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - std::atexitに渡された関数が呼ばれます。例外は関数のいずれかから伝播しようとした場合、std::terminateが呼び出されますOriginal:functions passed to std::atexit are called. If an exception tries to propagate out of any of the function, std::terminate is calledThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - すべてのCストリームをフラッシュし、閉じていますOriginal:all C streams are flushed and closedThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - std::tmpfileによって作成されたファイルは削除されますOriginal:files created by std::tmpfile are removedThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - 制御はホスト環境に戻されます。
exit_code
EXIT_SUCCESSている場合は、正常終了を示す実装で定義されたステータスが返されます。exit_code
EXIT_FAILUREている場合は、正常に終了しなかったことを示す実装で定義されたステータスが返されます。他のケースでは、実装定義のステータス値が返されます。.Original:control is returned to the host environment. Ifexit_code
is EXIT_SUCCESS, an implementation-defined status, indicating successful termination is returned. Ifexit_code
is EXIT_FAILURE, an implementation-defined status, indicating unsuccessful termination is returned. In other cases implementation-defined status value is returned.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
自動ストレージは、期間持つ変数のデストラクタは呼ばれません.
Original:
Destructors of variables with automatic ストレージは、期間 are not called.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
目次 |
[編集] パラメータ
exit_code | - | プログラムの状態を終了します
Original: exit status of the program The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[編集] 値を返します
(なし)
[編集] 例
This section is incomplete Reason: no example |
[編集] 参照
(清掃なし)プログラムの異常終了が発生します Original: causes abnormal program termination (without cleaning up) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
exit()呼び出しのときに呼び出される関数を登録します Original: registers a function to be called on exit() invocation The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) | |
(C++11) |
完全にクリーンアップせずに、プログラムの正常終了を引き起こす Original: causes normal program termination without completely cleaning up The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (関数) |
C documentation for exit
|