Espaces de noms
Variantes
Actions

std::feholdexcept

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

 
 
Bibliothèque Numerics
Fonctions mathématiques courantes
Virgule flottante environnement
Nombres complexes
Tableaux numériques
La génération de nombres pseudo-aléatoires
Moment de la compilation arithmétique rationnelle (C++11)
Génériques des opérations numériques
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
 
Virgule flottante environnement
Fonctions
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)
Macro constantes
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)
 
Déclaré dans l'en-tête <cfenv>
int feholdexcept(std::fenv_t* envp )
(depuis C++11)
Tout d'abord, permet d'économiser le courant à virgule flottante environnement à l'objet pointé par envp (semblable à std::fegetenv), puis efface tous les indicateurs d'état à virgule flottante, puis installe le mode non-stop: à venir exceptions de virgule flottante ne sera pas interrompre l'exécution ( ne retient pas), jusqu'à ce que l'environnement en virgule flottante est restauré par std::feupdateenv ou 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.
Cette fonction peut être utilisée au début d'un sous-programme qui doit cacher les exceptions en virgule flottante, il peut porter de l'appelant. Si seulement quelques exceptions doivent être supprimés, tandis que d'autres doivent être déclarées, le mode non-stop est généralement terminée par un appel à std::feupdateenv après avoir effacé les exceptions non désirées .
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.

[modifier]Paramètres

envp -
pointeur vers l'objet de std::fenv_t type où l'environnement en virgule flottante sont stockés
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.

[modifier]Retourne la valeur

0 en cas de succès, non nuls autrement .
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.

[modifier]Voir aussi

(C++11)
restaure l'environnement en virgule flottante et soulève le lever des exceptions précédemment
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.

(fonction)[edit]
sauvegarde ou restaure l'environnement actuel point flottant
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.

(fonction)[edit]
(C++11)
défaut en virgule flottante environnement
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.

(constante macro)[edit]
close