Exit code suitable for returning from main() or passing to std::exit().
More...
#include <GREM/application/Application.hpp>
|
| constexpr | ExitCode (int value) noexcept |
| | Construct an exit code.
|
| constexpr | operator int () const noexcept |
| | Implicitly convert the exit code to its underlying value.
|
|
| static const ExitCode | SUCCESS {EXIT_SUCCESS} |
| | Standard exit code value for indicating that the program completed successfully.
|
| static const ExitCode | FAILURE {EXIT_FAILURE} |
| | Standard exit code value for indicating that the program encountered an error.
|
Exit code suitable for returning from main() or passing to std::exit().
◆ ExitCode()
| grem::application::ExitCode::ExitCode |
( |
int | value | ) |
|
|
inlineexplicitconstexprnoexcept |
◆ operator int()
| grem::application::ExitCode::operator int |
( |
| ) |
const |
|
inlineconstexprnoexcept |
Implicitly convert the exit code to its underlying value.
- Returns
- the exit code value.
◆ SUCCESS
| ExitCode grem::application::ExitCode::SUCCESS {EXIT_SUCCESS} |
|
inlinestaticconstexpr |
Standard exit code value for indicating that the program completed successfully.
◆ FAILURE
| ExitCode grem::application::ExitCode::FAILURE {EXIT_FAILURE} |
|
inlinestaticconstexpr |
Standard exit code value for indicating that the program encountered an error.
The documentation for this class was generated from the following file: