名前空間
変種
操作

std::fegetexceptflag, std::fesetexceptflag

提供: cppreference.com
< cpp‎ | numeric‎ | fenv

 
 
ニューメリックスライブラリ
一般的な数学関数
浮動小数点環境
複素数
数値配列
擬似乱数生成
コンパイル時有理数演算 (C++11)
汎用の数値演算
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
 
浮動小数点環境
機能します
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)
マクロ定数
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)
 
Defined in header <cfenv>
int fegetexceptflag( std::fexcept_t* flagp, int excepts );
(1) (C++11およびそれ以降)
int fesetexceptflag( const std::fexcept_t* flagp, int excepts );
(2) (C++11およびそれ以降)
1)
ビット単位の論理和(OR)exceptsのあるビットマスク引数小数点例外マクロが浮かんでいます、に記載されている浮動小数点例外フラグの完全な内容を取得しようとし.
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 小数点例外マクロが浮かんでいます.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
浮動小数点環境にexceptsからflagpに記載されている浮動小数点例外フラグの全内容をコピーしようとします。 、任意の例外を発生させるだけのフラグを変更しません.
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.
浮動小数点例外フラグの完全な内容は、例外が発生したか、またはクリアされるかどうかを示すブール値であるとは限りません。例えば、それはブールステータスと例外を発生させたコードのアドレスを持つstructかもしれません。これらの関数はすべて、このようなコンテンツを入手し、/取得、実​​装定義の形式でflagpに保管.
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.

[編集] パラメータ

flagp -
フラグが格納されるか、またはから読み込まれますstd::fexcept_tオブジェクトへのポインタ
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 -
get / setのために例外フラグをリストするビットマスク
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.

[編集] 値を返します

0成功した場合には、ゼロ以外のその他のとき.
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.