Namensräume
Varianten

std::fegetexceptflag, std::fesetexceptflag

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 fegetexceptflag(std::fexcept_t* flagp, int excepts );
(1) (seit C++11)
int fesetexceptflag(conststd::fexcept_t* flagp, int excepts );
(2) (seit C++11)
1)
Versuche, den gesamten Inhalt der Gleitkomma-Ausnahme-Flags, die in der Bitmaske Argument excepts, die eine bitweise OR der Gleitkomma-Ausnahme Makros aufgelistet sind .
Original:
Attempts to obtain the full contents of the floating-point exception flags that are listed in the bitmask argument excepts, which is a bitwise OR of the Gleitkomma-Ausnahme Makros.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Versuche, den gesamten Inhalt der Gleitkomma-Ausnahme-Flags, die in excepts von flagp in der Floating-Point-Umgebung aufgeführt kopieren. Wirft keine Ausnahmen, ändert nur die Flaggen .
Original:
Attempts to copy the full contents of the floating-point exception flags that are listed in excepts from flagp into the floating-point environment. Does not raise any exceptions, only modifies the flags.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Die vollständigen Inhalt einer Gleitkomma-Ausnahme-Flag ist nicht unbedingt ein boolean Wert, der angibt, ob die Ausnahme ausgelöst wird, oder gelöscht werden. Zum Beispiel kann es eine Struktur, die den booleschen Status und die Adresse des Codes, der die Ausnahme ausgelöst einschließt. Diese Funktionen erhalten, solche Inhalte und erhalten / speichern Sie es in flagp in die Implementierung definiert Format .
Original:
The full contents of a floating-point exception flag is not necessarily a boolean value indicating whether the exception is raised or cleared. For example, it may be a struct which includes the boolean status and the address of the code that triggered the exception. These functions obtain all such content and obtain/store it in flagp in implementation-defined format.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[Bearbeiten]Parameter

flagp -
Zeiger auf ein std::fexcept_t Objekt, wo die Fahnen gespeichert oder werden gelesen
Original:
pointer to an std::fexcept_t object where the flags will be stored or read from
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
excepts -
Bitmaske Auflistung der Ausnahme Flags get / set
Original:
bitmask listing the exception flags to get/set
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.
close