Namespaces
Variants
Views
Actions

std::feupdatedenv

From cppreference.com
< cpp‎ | numeric‎ | fenv
Revision as of 23:30, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dsc-header">

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

<td></td> <td></td> <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 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.

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

Return value

0 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