cpp/utility/program/ Exit

Causes normal program termination to occur without completely cleaning the resources.

Destructors of variables with automatic, thread local and static storage durations are not called. Functions passed to std or std are not called. Whether open resources such as files are closed is implementation defined.

If is 0 or exit_success, an implementation-defined status indicating successful termination is returned to the host environment. If is exit_failure, an implementation-defined status, indicating unsuccessful termination, is returned. In other cases implementation-defined status value is returned.

Return value
(none)