std::feholdexcept
Da cppreference.com.
![]() | Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Elemento definito nell'header <cfenv> | ||
int feholdexcept( std::fenv_t* envp ) | (dal C++11) | |
In primo luogo, consente di risparmiare la corrente in virgola mobile ambiente all'oggetto puntato da
envp
(simile a std::fegetenv), cancella quindi tutte le virgola mobile flag di stato, e quindi installa il non-stop mode: future eccezioni a virgola mobile non interromperà l'esecuzione ( non intrappolare), fino alla virgola mobile ambiente è ripristinata std::feupdateenv o 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.
Questa funzione può essere utilizzata all'inizio di una subroutine che deve nascondere le eccezioni a virgola mobile può sollevare dal chiamante. Se solo alcune eccezioni devono essere soppressi, mentre altri devono essere segnalati, la non-stop modalità viene in genere si è conclusa con una chiamata a std::feupdateenv dopo aver eliminato le eccezioni indesiderate.
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.
[modifica]Parametri
envp | - | puntatore all'oggetto di tipo std::fenv_t dove la virgola ambiente verrà memorizzato 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. |
[modifica]Valore di ritorno
0 in caso di successo, non-zero altrimenti.
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.
[modifica]Vedi anche
(C++11) | ripristina la virgola mobile e solleva l'ambiente precedentemente generare eccezioni 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. (funzione) |
(C++11) | salva o ripristina l'ambiente corrente in virgola mobile 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. (funzione) |
(C++11) | predefinito in virgola mobile ambiente 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. (macro costante) |