std::feholdexcept – cppreference.com
Aus cppreference.com
<metanoindex/>
<tbody> </tbody>
| definiert in Header <cfenv> |
||
|
|
(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.
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.
Parameter
| envp | - | Zeiger auf das Objekt vom Typ Original: pointer to the object of type The text has been machine-translated via Google Translate. |
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.
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. (Funktion) [edit] |
(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. (Funktion) [edit] |
(C++11) |
Standardmäßig Floating-Point-Umgebung Original: default floating-point environment The text has been machine-translated via Google Translate. (Makro konstant) [edit] |