std::feholdexcept
De 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. |
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.
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.
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.
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) |
(C++11) | 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) |
(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) |