名前空間
変種
操作

「cpp/numeric/fenv/feenv」の版間の差分

提供: cppreference.com
< cpp‎ | numeric‎ | fenv
(r2.7.3) (ロボットによる 追加: de, en, es, fr, it, pt, ru, zh)
(Use {{lc}}. Update links. Various fixes.)
2行: 2行:
 
{{cpp/title|fegetenv|fesetenv}}
 
{{cpp/title|fegetenv|fesetenv}}
 
{{cpp/numeric/fenv/navbar}}
 
{{cpp/numeric/fenv/navbar}}
{{ddcl list begin}}
+
{{begin}}
{{ddcl list header | cfenv}}
+
{{header | cfenv}}
{{ddcl list item | notes={{mark since c++11}} | num=1|
+
{{| =c++11 | num=1|
 
int fegetenv( std::fenv_t* envp )
 
int fegetenv( std::fenv_t* envp )
 
}}
 
}}
{{ddcl list item | notes={{mark since c++11}} | num=2|
+
{{| sincec++11 | num=2|
 
int fesetenv( const std::fenv_t* envp );
 
int fesetenv( const std::fenv_t* envp );
 
}}
 
}}
{{ddcl list end}}
+
{{end}}
  
 
1) {{tr|{{tt|envp}}が指すオブジェクトに、浮動小数点環境のステータスを格納しようとします|Attempts to store the status of the floating-point environment in the object pointed to by {{tt|envp}}.}}
 
1) {{tr|{{tt|envp}}が指すオブジェクトに、浮動小数点環境のステータスを格納しようとします|Attempts to store the status of the floating-point environment in the object pointed to by {{tt|envp}}.}}
  
2) {{tr|{{tt|envp}}が指すオブジェクトから浮動小数点環境を確立しようとします。そのオブジェクトの値は、以前{{c|std::feholdexcept}}へのコールによって取得または{{tt|std::fegetenv}}または浮動小数点マクロ定数である必要があります。浮動小数点ステータスフラグのいずれかが{{tt|envp}}に設定されている場合、彼らは(実行が中断しない)(そして{{c|std::fetestexcept}}によって検証可能である)環境で設定となっているが、対応する浮動小数点例外は発生しません|Attempts to establish the floating-point environment from the object pointed to by {{tt|envp}}. The value of that object must be previously obtained by a call to {{c|std::feholdexcept}} or {{tt|std::fegetenv}} or be a floating-point macro constant. If any of the floating-point status flags are set in {{tt|envp}}, they become set in the environment (and are then testable with {{c|std::fetestexcept}}), but the corresponding floating-point exceptions are not raised (execution continues uninterrupted)}}
+
2) {{tr|{{tt|envp}}が指すオブジェクトから浮動小数点環境を確立しようとします。そのオブジェクトの値は、以前{{|std::feholdexcept}}へのコールによって取得または{{tt|std::fegetenv}}または浮動小数点マクロ定数である必要があります。浮動小数点ステータスフラグのいずれかが{{tt|envp}}に設定されている場合、彼らは(実行が中断しない)(そして{{|std::fetestexcept}}によって検証可能である)環境で設定となっているが、対応する浮動小数点例外は発生しません|Attempts to establish the floating-point environment from the object pointed to by {{tt|envp}}. The value of that object must be previously obtained by a call to {{|std::feholdexcept}} or {{tt|std::fegetenv}} or be a floating-point macro constant. If any of the floating-point status flags are set in {{tt|envp}}, they become set in the environment (and are then testable with {{|std::fetestexcept}}), but the corresponding floating-point exceptions are not raised (execution continues uninterrupted)}}
  
 
===パラメータ===
 
===パラメータ===
{{param list begin}}
+
{{begin}}
{{param list item | envp |{{tr| 浮動小数点環境のステータスを保持するタイプ{{c|std::fenv_t}}のオブジェクトへのポインタ.| pointer to the object of type {{c|std::fenv_t}} which holds the status of the floating-point environment}}}}
+
{{| envp |{{tr| 浮動小数点環境のステータスを保持するタイプ{{c|std::fenv_t}}のオブジェクトへのポインタ.| pointer to the object of type {{c|std::fenv_t}} which holds the status of the floating-point environment}}}}
{{param list end}}
+
{{end}}
  
 
===値を返します===
 
===値を返します===
25行: 25行:
  
 
===も参照してください===
 
===も参照してください===
{{dcl list begin}}
+
{{begin}}
{{dcl list template | cpp/numeric/fenv/dcl list feholdexcept}}
+
{{| cpp/numeric/fenv/feholdexcept}}
{{dcl list template | cpp/numeric/fenv/dcl list feupdateenv}}
+
{{| cpp/numeric/fenv/feupdateenv}}
{{dcl list template | cpp/numeric/fenv/dcl list FE_DFL_ENV}}
+
{{| cpp/numeric/fenv/FE_DFL_ENV}}
{{dcl list end}}
+
{{end}}
  
 
[[de:cpp/numeric/fenv/feenv]]
 
[[de:cpp/numeric/fenv/feenv]]

2013年7月2日 (火) 14:37時点における版

 
 
 
浮動小数点環境
関数
(C++11)(C++11)
fegetenvfesetenv
(C++11)(C++11)
マクロ定数
(C++11)
 
ヘッダ <cfenv> で定義
int fegetenv( std::fenv_t* envp )
(1) (C++11以上)
int fesetenv( const std::fenv_t* envp );
(2) (C++11以上)
1)
envpが指すオブジェクトに、浮動小数点環境のステータスを格納しようとします
Original:
Attempts to store the status of the floating-point environment in the object pointed to by envp.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
envpが指すオブジェクトから浮動小数点環境を確立しようとします。そのオブジェクトの値は、以前std::feholdexceptへのコールによって取得またはstd::fegetenvまたは浮動小数点マクロ定数である必要があります。浮動小数点ステータスフラグのいずれかがenvpに設定されている場合、彼らは(実行が中断しない)(そしてstd::fetestexceptによって検証可能である)環境で設定となっているが、対応する浮動小数点例外は発生しません
Original:
Attempts to establish the floating-point environment from the object pointed to by envp. The value of that object must be previously obtained by a call to std::feholdexcept or std::fegetenv or be a floating-point macro constant. If any of the floating-point status flags are set in envp, they become set in the environment (and are then testable with std::fetestexcept), but the corresponding floating-point exceptions are not raised (execution continues uninterrupted)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

パラメータ

envp -
浮動小数点環境のステータスを保持するタイプstd::fenv_tのオブジェクトへのポインタ.
Original:
pointer to the object of type std::fenv_t which holds the status of the 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.

値を返します

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.

も参照してください

環境を保存し、すべてのステータスフラグをクリアし、今後のすべてのエラーを無視します
(関数) [edit]
浮動小数点環境を復元し、以前に発生した例外を発生させます
(関数) [edit]
デフォルトの浮動小数点環境
(マクロ定数) [edit]