Espaces de noms
Variantes
Actions

std::terminate

De cppreference.com
< cpp‎ | error

 
 
 
Erreur de manipulation
La gestion des exceptions
Original:
Exception handling
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
exception
uncaught_exception
exception_ptr (C++11)
make_exception_ptr (C++11)
current_exception (C++11)
rethrow_exception (C++11)
nested_exception (C++11)
throw_with_nested (C++11)
rethrow_if_nested (C++11)
Défaillances de gestion des exceptions
Original:
Exception handling failures
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
terminate
terminate_handler
get_terminate (C++11)
set_terminate
unexpected (obsolète)
bad_exception
unexpected_handler (obsolète)
get_unexpected (C++11) (obsolète)
set_unexpected (obsolète)
Catégories d'exception
Original:
Exception categories
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
logic_error
invalid_argument
domain_error
length_error
out_of_range
runtime_error
range_error
overflow_error
underflow_error
Les codes d'erreur
Original:
Error codes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Les codes d'erreur
errno
Les assertions
Original:
Assertions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
assert
system_error installation
Original:
system_error facility
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
error_category (C++11)
generic_category (C++11)
system_category (C++11)
error_condition (C++11)
errc (C++11)
error_code (C++11)
system_error (C++11)
 
Déclaré dans l'en-tête <exception>
[[noreturn]]void terminate();
std::terminate() est appelé par le runtime C + + lors de la manipulation exception échoue pour une des raisons suivantes:
Original:
std::terminate() is called by the C++ runtime when exception handling fails for any of the following reasons:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
une exception est levée et non pris (il est défini par l'implémentation si une pile déroulement se fait dans ce cas)
Original:
an exception is thrown and not caught (it is implementation-defined whether any stack unwinding is done in this case)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
une exception est levée lors de la gestion des exceptions (par exemple, depuis un destructeur d'un objet local, ou d'une fonction qui devait être appelée lors de la gestion des exceptions)
Original:
an exception is thrown during exception handling (e.g. from a destructor of some local object, or from a function that had to be called during exception handling)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
le constructeur ou le destructeur d'un objet statique ou locale au thread lève une exception
Original:
the constructor or the destructor of a static or thread-local object throws an exception
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
4)
une fonction enregistrée avec std::atexit ou std::at_quick_exit lève une exception
Original:
a function registered with std::atexit or std::at_quick_exit throws an exception
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
5)
un noexcept spécification est violée (il est défini par l'implémentation si une pile déroulement se fait dans ce cas)
Original:
a noexcept spécification is violated (it is implementation-defined whether any stack unwinding is done in this case)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
6)
un spécification d'exception dynamique est violée et le gestionnaire par défaut pour std::unexpected est exécutée
Original:
a spécification d'exception dynamique is violated and the default handler for std::unexpected is executed
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
7)
un gestionnaire par défaut pour non-std::unexpected lève une exception qui viole la spécification d'exception déjà enfreint dynamique, si la spécification ne comprennent std::bad_exception
Original:
a non-default handler for std::unexpected throws an exception that violates the previously violated dynamic exception specification, if the specification does not include std::bad_exception
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
8)
std::nested_exception::rethrow_nested est appelée pour un objet qui ne tient pas une exception capturée
Original:
std::nested_exception::rethrow_nested is called for an object that isn't holding a captured exception
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
9)
une exception est levée à partir de la fonction initiale de std::thread
Original:
an exception is thrown from the initial function of std::thread
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
10)
un std::thread juxtaposable est détruite ou affectée
Original:
a joinable std::thread is destroyed or assigned to
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
std::terminate() peuvent également être appelés directement à partir du programme .
Original:
std::terminate() may also be called directly from the program.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


Dans tous les cas, std::terminate appelle le std::terminate_handler actuellement installé. Le défaut std::terminate_handler appels std::abort .
Original:
In any case, std::terminate calls the currently installed std::terminate_handler. The default std::terminate_handler calls std::abort.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


Sommaire

[modifier]Paramètres

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

[modifier]Retourne la valeur

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

[modifier]Exceptions

noexcept specification:  
noexcept
   (depuis C++11)

[modifier]Voir aussi

le type de la fonction appelée par std::terminate
Original:
the type of the function called by std::terminate
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(typedef)[edit]
close