Namensräume
Varianten

std::feholdexcept

Aus cppreference.com
< cpp‎ | numeric‎ | fenv

 
 
Numerik-Bibliothek
Gemeinsame mathematischen Funktionen
Floating-Point-Umgebung
Komplexe Zahlen
Numerische Arrays
Pseudo-Zufallszahlen
Compile-time rationale Arithmetik(C++11)
Generische numerische Operationen
Original:
Generic numeric operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iota(C++11)
accumulate
inner_product
adjacent_difference
partial_sum
 
Floating-Point-Umgebung
Funktionen
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
feclearexcept(C++11)
fetestexcept(C++11)
feraiseexcept(C++11)
fegetexceptflag
fesetexceptflag
(C++11)
(C++11)
fegetround
fesetround
(C++11)
(C++11)
fegetenv
fesetenv
(C++11)
feholdexcept(C++11)
feupdateenv(C++11)
Makro Konstanten
Original:
Macro constants
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
FE_ALL_EXCEPT
FE_DIVBYZERO
FE_INEXACT
FE_INVALID
FE_OVERFLOW
FE_UNDERFLOW
(C++11)
FE_DOWNWARD
FE_TONEAREST
FE_TOWARDZERO
FE_UPWARD
(C++11)
FE_DFL_ENV(C++11)
 
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.
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.

[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.

[Bearbeiten]Siehe auch

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)[edit]
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)[edit]
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)[edit]
close