std::fegetexceptflag
Template:cpp/numeric/fenv/sidebar Template:ddcl list begin <tr class="t-dsc-header">
<td><cfenv>
<td></td> <td></td> </tr> <tr class="t-dcl ">
<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.