Namespaces
Variants
Views
Actions

std::set_terminate

From cppreference.com
< cpp‎ | error
Revision as of 17:33, 26 August 2013 by P12 (Talk | contribs)

 
 
 
Defined in header <exception>

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

(none) (until C++11)
noexcept specification:  
noexcept
  
(since C++11)

See also

function called when exception handling fails
(function) [edit]
obtains the current terminate_handler
(function) [edit]
the type of the function called by std::terminate
(typedef) [edit]