Espaços nominais
Variantes
Acções

std::fegetexceptflag, std::fesetexceptflag

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

 
 
Biblioteca numéricos
Funções matemáticas comuns
De ponto flutuante ambiente
Números complexos
Matrizes numéricas
Pseudo-aleatório de geração de números
Tempo de compilação aritmética racional(C++11)
Genéricos operações numéricas
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.
(C++11)
 
De ponto flutuante ambiente
Funções
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
fegetexceptflagfesetexceptflag
(C++11)(C++11)
(C++11)(C++11)
Constantes de macros
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.
(C++11)
 
Definido no cabeçalho <cfenv>
int fegetexceptflag( std::fexcept_t* flagp, int excepts );
(1) (desde C++11)
int fesetexceptflag(const std::fexcept_t* flagp, int excepts );
(2) (desde C++11)
1)
Tentativas de obter o conteúdo completo das bandeiras de ponto flutuante de exceção que estão listados na excepts argumento bitmask, que é um OR bit a bit do flutuando macros de exceção de ponto.
Original:
Attempts to obtain the full contents of the floating-point exception flags that are listed in the bitmask argument excepts, which is a bitwise OR of the flutuando macros de exceção de ponto.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Tenta copiar o conteúdo completo das bandeiras de ponto flutuante de exceção que estão listados na excepts de flagp no ambiente de ponto flutuante. Não levanta quaisquer exceções, apenas modifica as bandeiras.
Original:
Attempts to copy the full contents of the floating-point exception flags that are listed in excepts from flagp into the floating-point environment. Does not raise any exceptions, only modifies the flags.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
O conteúdo completo de uma bandeira exceção de ponto flutuante não é necessariamente um valor booleano que indica se a exceção é levantada ou limpo. Por exemplo, pode ser uma estrutura que inclui o estado booleano e o endereço do código que disparou a excepção. Estas funções obter todo o conteúdo e obter / armazená-lo em flagp na implementação formato definido.
Original:
The full contents of a floating-point exception flag is not necessarily a boolean value indicating whether the exception is raised or cleared. For example, it may be a struct which includes the boolean status and the address of the code that triggered the exception. These functions obtain all such content and obtain/store it in flagp in implementation-defined format.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar]Parâmetros

flagp -
ponteiro para um objeto std::fexcept_t onde as bandeiras serão armazenados ou leitura
Original:
pointer to an std::fexcept_t object where the flags will be stored or read from
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
excepts -
bitmask listando as bandeiras de exceção para obter / definir
Original:
bitmask listing the exception flags to get/set
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.
close