Difference between revisions of "cpp/numeric/fenv/feexceptflag"
m (this function->these functions) |
m (Text replace - "{{cpp|" to "{{c|") |
||
Line 19: | Line 19: | ||
===Parameters=== | ===Parameters=== | ||
{{param list begin}} | {{param list begin}} | ||
− | {{param list item | flagp | pointer to an {{ | + | {{param list item | flagp | pointer to an {{c|std::fexcept_t}} object where the flags will be stored or read from}} |
{{param list item | excepts | bitmask listing the exception flags to get/set}} | {{param list item | excepts | bitmask listing the exception flags to get/set}} | ||
{{param list end}} | {{param list end}} | ||
===Return value=== | ===Return value=== | ||
− | {{ | + | {{c|0}} on success, non-zero otherwise. |
Revision as of 20:18, 19 April 2012
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 > (1) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td ><td > (2) </td> <td > (since C++11) </td> </tr> Template:ddcl list end
1) 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.
2) Attempts to copy the full contents of the floating-point exception flags that are listed in excepts
from flagp
into the floating-point environment. Does not raise any exceptions, only modifies the flags.
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. These functions obtain all such content and obtain/store it in flagp
in implementation-defined format.
Parameters
flagp | - | pointer to an std::fexcept_t object where the flags will be stored or read from |
excepts | - | bitmask listing the exception flags to get/set |
Return value
0 on success, non-zero otherwise.