std::set_unexpected
From cppreference.com
Template:ddcl list begin <tr class="t-dsc-header">
<td>Defined in header
</td>
<exception>
<td></td> <td></td> </tr> <tr class="t-dcl ">
<td class="t-dcl-nopad">std::unexpected_handler set_unexpected( std::unexpected_handler f )
</td>
<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end
Makes f
the new global std::unexpected_handler and returns the previously installed std::unexpected_handler.
Contents |
Parameters
f | - | pointer to function of type std::unexpected_handler, or null pointer |
Return value
The previously-installed unexpected handler, or a null pointer value if none was installed.
Exceptions
noexcept specification:
noexcept