std::feholdexcept
Da 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. |
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.
[editar]Parâmetros
envp | - | ponteiro para o objeto de std::fenv_t tipo onde o ambiente de ponto flutuante será armazenado 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. |
[editar]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.
[editar]Veja também
(C++11) | restaura o ambiente de ponto flutuante e levanta a anteriormente levantar exceções 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. (função) |
(C++11) | salva ou restaura o ambiente actual ponto flutuante 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. (função) |
(C++11) | ambiente padrão de ponto flutuante 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 constante) |