◐ Shell
clean mode source ↗

std::feholdexcept - cppreference.com

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.

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.

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.

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.

Veja também

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) [edit]

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) [edit]

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) [edit]