std::feholdexcept

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

 
 
Numeri libreria
Comuni funzioni matematiche
Virgola mobile ambiente
I numeri complessi
Array numerici
Pseudo-casuale generazione
In fase di compilazione aritmetica razionale(C++11)
Generici operazioni numeriche
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
 
Virgola mobile ambiente
Funzioni
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 costanti
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)
 
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.
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.

[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.

[modifica]Vedi anche

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)[modifica]
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)[modifica]
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)[modifica]
close