Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/numeric/fenv/feupdateenv"

From cppreference.com
< cpp‎ | numeric‎ | fenv
m (Shorten template names. Use {{lc}} where appropriate.)
m (see c)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{cpp/title|feupdatedenv}}
+
{{cpp/title|feupdateenv}}
 
{{cpp/numeric/fenv/navbar}}
 
{{cpp/numeric/fenv/navbar}}
 
{{dcl begin}}
 
{{dcl begin}}
 
{{dcl header | cfenv}}
 
{{dcl header | cfenv}}
{{dcl | notes={{mark since c++11}} |
+
{{dcl | since=c++11 |
 
int feupdateenv( const std::fenv_t* envp )
 
int feupdateenv( const std::fenv_t* envp )
 
}}
 
}}
Line 22: Line 22:
 
===See also===
 
===See also===
 
{{dsc begin}}
 
{{dsc begin}}
{{dsc inc | cpp/numeric/fenv/dcl list feholdexcept}}
+
{{dsc inc | cpp/numeric/fenv/dsc feholdexcept}}
{{dsc inc | cpp/numeric/fenv/dcl list feenv}}
+
{{dsc inc | cpp/numeric/fenv/dsc feenv}}
{{dsc inc | cpp/numeric/fenv/dcl list FE_DFL_ENV}}
+
{{dsc inc | cpp/numeric/fenv/dsc FE_DFL_ENV}}
 +
{{dsc see c | c/numeric/fenv/feupdateenv}}
 
{{dsc end}}
 
{{dsc end}}
  
[[de:cpp/numeric/fenv/feupdateenv]]
+
{{langlinks|de|es|fr|it|ja|pt|ru|zh}}
[[es:cpp/numeric/fenv/feupdateenv]]
+
[[fr:cpp/numeric/fenv/feupdateenv]]
+
[[it:cpp/numeric/fenv/feupdateenv]]
+
[[ja:cpp/numeric/fenv/feupdateenv]]
+
[[pt:cpp/numeric/fenv/feupdateenv]]
+
[[ru:cpp/numeric/fenv/feupdateenv]]
+
[[zh:cpp/numeric/fenv/feupdateenv]]
+

Latest revision as of 08:09, 18 September 2017

 
 
 
Floating-point environment
Functions
(C++11)(C++11)
(C++11)(C++11)
feupdateenv
(C++11)
Macro constants
(C++11)
 
Defined in header <cfenv>
int feupdateenv( const std::fenv_t* envp )
(since C++11)

First, remembers the currently raised floating-point exceptions, then restores the floating-point environment from the object pointed to by envp (similar to std::fesetenv), then raises the floating-point exceptions that were saved.

This function may be used to end the non-stop mode established by an earlier call to std::feholdexcept.

[edit] Parameters

envp - pointer to the object of type std::fenv_t set by an earlier call to std::feholdexcept or std::fegetenv or equal to FE_DFL_ENV

[edit] Return value

0 on success, non-zero otherwise.

[edit] See also

saves the environment, clears all status flags and ignores all future errors
(function) [edit]
saves or restores the current floating-point environment
(function) [edit]
default floating-point environment
(macro constant) [edit]
C documentation for feupdateenv