std:: feupdateenv
From cppreference.net
C++
Numerics library
| Common mathematical functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mathematical special functions (C++17) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Mathematical constants (C++20) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Basic linear algebra algorithms (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Data-parallel types (SIMD) (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Floating-point environment (C++11) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Complex numbers | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Numeric array (
valarray
)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Pseudo-random number generation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Bit manipulation (C++20) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Saturation arithmetic (C++26) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Factor operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Interpolations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Generic numeric operations | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| C-style checked integer arithmetic | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Floating-point environment
| Functions | ||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
|
||||
|
(C++11)
(C++11)
|
||||
|
(C++11)
(C++11)
|
||||
|
(C++11)
(C++11)
|
||||
|
(C++11)
|
||||
|
feupdateenv
(C++11)
|
||||
| Macro constants | ||||
|
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
(C++11)
|
||||
|
(C++11)
(C++11)
(C++11)
(C++11)
|
||||
|
(C++11)
|
|
ヘッダーで定義
<cfenv>
|
||
|
int
feupdateenv
(
const
std::
fenv_t
*
envp
)
|
(C++11以降) | |
まず、現在発生している浮動小数点例外を記憶し、次に
envp
が指すオブジェクトから浮動小数点環境を復元し(
std::fesetenv
と同様)、最後に保存されていた浮動小数点例外を発生させます。
この関数は、以前の std::feholdexcept の呼び出しによって確立された非停止モードを終了するために使用できます。
パラメータ
| envp | - |
型
std::
fenv_t
のオブジェクトへのポインタ。
以前の
std::feholdexcept
または
std::fegetenv
の呼び出しによって設定されたもの、あるいは
FE_DFL_ENV
と等しい値。
|
戻り値
0 成功時は0、それ以外の場合は非ゼロ値。
関連項目
|
(C++11)
|
環境を保存し、すべてのステータスフラグをクリアして将来のすべてのエラーを無視する
(関数) |
|
(C++11)
|
現在の浮動小数点環境を保存または復元する
(関数) |
|
(C++11)
|
デフォルト浮動小数点環境
(マクロ定数) |
|
C documentation
for
feupdateenv
|
|