Namespaces
Variants
Views
Actions

std::set_terminate

From cppreference.com
< cpp‎ | error
Revision as of 18:56, 19 April 2012 by P12bot (Talk | contribs)

Template:cpp/error/sidebar Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <exception>
</td>

<td></td> <td></td> </tr> <tr class="t-dcl ">

<td class="t-dcl-nopad">
std::terminate_handler set_terminate( std::terminate_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 terminate handler function and returns the previously installed std::terminate_handler.

Contents

Parameters

f - pointer to function of type std::terminate_handler, or null pointer

Return value

The previously-installed terminate handler, or a null pointer value if none was installed.

Exceptions

noexcept specification:  
noexcept
  

See also

Template:cpp/error/exception/dcl list terminateTemplate:cpp/error/exception/dcl list get terminateTemplate:cpp/error/exception/dcl list terminate handler