Difference between revisions of "cpp/numeric/fenv/feupdateenv"
From cppreference.com
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| | + | {{cpp/title|feupdateenv}} |
{{cpp/numeric/fenv/navbar}} | {{cpp/numeric/fenv/navbar}} | ||
{{dcl begin}} | {{dcl begin}} | ||
{{dcl header | cfenv}} | {{dcl header | cfenv}} | ||
− | {{dcl | | + | {{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/ | + | {{dsc inc | cpp/numeric/fenv/dsc feholdexcept}} |
− | {{dsc inc | cpp/numeric/fenv/ | + | {{dsc inc | cpp/numeric/fenv/dsc feenv}} |
− | {{dsc inc | cpp/numeric/fenv/ | + | {{dsc inc | cpp/numeric/fenv/dsc FE_DFL_ENV}} |
+ | {{dsc see c | c/numeric/fenv/feupdateenv}} | ||
{{dsc end}} | {{dsc end}} | ||
− | + | {{langlinks|de|es|fr|it|ja|pt|ru|zh}} | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + |
Latest revision as of 08:09, 18 September 2017
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
(C++11) |
saves the environment, clears all status flags and ignores all future errors (function) |
(C++11) |
saves or restores the current floating-point environment (function) |
(C++11) |
default floating-point environment (macro constant) |
C documentation for feupdateenv
|