std::feholdexcept
De cppreference.com
<metanoindex/>
<tbody> </tbody>| Definido no cabeçalho <cfenv>
|
||
int feholdexcept( std::fenv_t* envp ) |
(desde C++11) | |
Primeiro, poupa o meio ambiente de ponto flutuante atual para o objeto apontado por
envp (semelhante ao std::fegetenv), em seguida, apaga todas as bandeiras de ponto flutuante de estado, e depois instala o modo non-stop: futuros exceções de ponto flutuante não vai interromper a execução ( não prender), até que o ambiente de ponto flutuante é restaurado por 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.
Esta função pode ser utilizada no início de uma sub-rotina que deve esconder as excepções de ponto flutuante pode aumentar a partir do chamador. Se apenas algumas exceções devem ser suprimidos, enquanto outros devem ser relatados, o modo non-stop é geralmente terminou com uma chamada para std::feupdateenv depois de limpar as exceções indesejados.
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.
Parâmetros
| envp | - | ponteiro para o objeto de
std::fenv_t tipo onde o ambiente de ponto flutuante será armazenadoOriginal: pointer to the object of type std::fenv_t where the floating-point environment will be storedThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Valor de retorno
0 em caso de sucesso, não-zero, caso contrário.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.
