Namespaces
Variants
Views
Actions

std::fegetexceptflag

From cppreference.com
< cpp‎ | numeric‎ | fenv
Revision as of 18:49, 23 February 2012 by Cubbi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 fegetexceptflag(std::fexcept_t* flagp, int excepts);
</td>

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

Attempts to obtain the full contents of the floating-point exception flags that are listed in the bitmask argument excepts, which is a bitwise OR of the floating point exception macros.

The full contents of a floating-point exception flag is not necessarily a boolean value indicating whether the exception is raised or cleared. For example, it may be a struct which includes the boolean status and the address of the code that triggered the exception. This function obtains all such content and stored it in flagp in implementation-defined format.

Parameters

flagp - pointer to an Template:cpp object where the flags will be stored
excepts - bitmask listing the exception flags to get

Return value

Template:cpp if the flags were successfully stored in flagp, non-zero otherwise.

See also

Template:cpp/numeric/fenv/dcl list fesetexceptflag