Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | numeric‎ | fenv
(+)
 
m (copypaste typo)
Line 1: Line 1:
{{cpp/title|fegetenv|feupdatedenv}}
+
{{cpp/title|feupdatedenv}}
 
{{cpp/numeric/fenv/sidebar}}
 
{{cpp/numeric/fenv/sidebar}}
 
{{ddcl list begin}}
 
{{ddcl list begin}}

Revision as of 19:10, 28 March 2012

Template:cpp/numeric/fenv/sidebar Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <cfenv>
</td>

<td></td> <td></td> </tr> <tr class="t-dcl ">

<td >
int feupdateenv( const std::fenv_t* envp )
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

First, remembers the currently raised floating-point exceptions, then restores the floating-point environment from the object pointed to by envp (similar to Template:cpp), 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 Template:cpp.

Parameters

envp - pointer to the object of type Template:cpp set by an earlier call to Template:cpp or std::fegetenv or equal to Template:cpp

Return value

Template:cpp on success, non-zero otherwise.

See also

Template:cpp/numeric/fenv/dcl list feholdexceptTemplate:cpp/numeric/fenv/dcl list feenvTemplate:cpp/numeric/fenv/dcl list FE DFL ENV