std::fegetenv, std::fesetenv
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 fegetenv( std::fenv_t* envp ) |
(1) | (seit C++11) |
int fesetenv( const std::fenv_t* envp ); |
(2) | (seit C++11) |
Versuche, den Status der Floating-Point-Umfeld, in das Objekt zu speichern, auf die
2) envp
.Original:
Attempts to store the status of the floating-point environment in the object pointed to by
envp
.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.
Versuche, die Floating-Point-Umgebung aus dem Objekt, auf das
envp
etablieren. den Wert dieser Objekt muss zuvor durch einen Aufruf zu erhaltenden std::feholdexcept oder std::fegetenv
oder ein Floating-Point-Makro konstant. Wenn einer der Floating-Point-Status-Flags in envp
gesetzt werden, werden sie in der Umgebung gesetzt (und sind dann prüfbar mit std::fetestexcept) aber die entsprechenden Gleitkomma-Exceptions werden nicht erhoben (Ausführung ohne Unterbrechung fortgesetzt)Original:
Attempts to establish the floating-point environment from the object pointed to by
envp
. The value of that object must be previously obtained by a call to std::feholdexcept or std::fegetenv
or be a floating-point macro constant. If any of the floating-point status flags are set in envp
, they become set in the environment (and are then testable with std::fetestexcept), but the corresponding floating-point exceptions are not raised (execution continues uninterrupted)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 die den Status hält der Floating-Point-Umgebung
Original: pointer to the object of type std::fenv_t which holds the status of the 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. |
[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) |
schont die Umwelt, löscht alle Status-Flags und ignoriert alle zukünftigen Fehler Original: saves the environment, clears all status flags and ignores all future errors 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) |
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) |
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) |