◐ Shell
clean mode source ↗

std::abort - cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

Definido no cabeçalho

<cstdlib>

[[noreturn]] void abort();

(desde C++11)

             void abort();

(até C++11)

Causes abnormal program termination unless SIGABRT is being caught by a signal handler passed to signal and the handler does not return.

Destructors of variables with automatic, thread local and static armazenamento durações are not called. Functions, passed to atexit() are also not called. Whether open resources such as files are closed is implementation defined. Implementation defined status is returned to the host environment that indicates unsuccessful execution.

Parâmetros

(Nenhum)

Original:

(none)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Valor de retorno

(Nenhum)

Original:

(none)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Exceções

Exemplo

Veja também

provoca término normal do programa com a limpeza

Original:

causes normal program termination with cleaning up

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(função) [edit]

registra uma função a ser chamada no momento da invocação

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.


(função) [edit]

provoca término normal do programa completamente sem limpeza

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.


(função) [edit]

Documentação C para abort