std::feholdexcept
Aus cppreference.com
![]() | This page has been machine-translated from the English version of the wiki using Google Translate. The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
definiert in Header <cfenv> | ||
int feholdexcept(std::fenv_t* envp ) | (seit C++11) | |
Zunächst wird die aktuelle Floating-Point-Umgebung, um das Objekt, auf das
envp
(ähnlich std::fegetenv), dann löscht alle Floating-Point-Status-Flags, und installiert dann die Non-Stop-Modus: Zukunft Gleitkomma-Ausnahmen werden nicht unterbrechen Ausführung ( nicht einfangen), bis die Floating-Point-Umgebung durch std::feupdateenv wiederhergestellt oder std::fesetenv .Original:
First, saves the current floating-point environment to the object pointed to by
envp
(similar to std::fegetenv), then clears all floating-point status flags, and then installs the non-stop mode: future floating-point exceptions will not interrupt execution (will not trap), until the floating-point environment is restored by std::feupdateenv or std::fesetenv.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.
Diese Funktion kann in den Anfang eines Unterprogramms, das die Floating-Point-Ausnahmen ist es aus der Anruferliste erhöhen kann verstecken muss verwendet werden. Wenn nur einige Ausnahmen müssen unterdrückt werden, während andere müssen gemeldet werden, wird der Non-Stop-Modus in der Regel mit einem Aufruf an std::feupdateenv nach dem Löschen der unerwünschten Ausnahmen beendet .
Original:
This function may be used in the beginning of a subroutine that must hide the floating-point exceptions it may raise from the caller. If only some exceptions must be suppressed, while others must be reported, the non-stop mode is usually ended with a call to std::feupdateenv after clearing the unwanted exceptions.
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.
[Bearbeiten]Parameter
envp | - | Zeiger auf das Objekt vom Typ std::fenv_t wo das Floating-Point-Umgebung gespeichert werden Original: pointer to the object of type std::fenv_t where the floating-point environment will be stored The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[Bearbeiten]Rückgabewert
0 bei Erfolg Null sonst .
Original:
0 on success, non-zero otherwise.
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.
[Bearbeiten]Siehe auch
(C++11) | stellt die Floating-Point-Umgebung und stellt die zuvor Ausnahmen auslösen Original: restores the floating-point environment and raises the previously raise exceptions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) |
(C++11) | speichert oder stellt die aktuelle Floating-Point-Umgebung Original: saves or restores the current floating point environment The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Funktion) |
(C++11) | Standardmäßig Floating-Point-Umgebung Original: default floating-point environment The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (Makro konstant) |