terminate_handler get_terminate() noexcept;
Get terminate handler function
Gets the terminate handler function.
The terminate handler function is automatically called when no
catch handler can be found for a thrown exception, or for some other exceptional circumstance that makes impossible to continue the exception handling process.
If no such function has been set by a previous call to set_terminate, the function may return a null-pointer (although some implementations may also return a valid function pointer that calls abort).
If set_terminate has previously been called by the program, the function returns the current terminate handler function.
Otherwise, it returns an unspecified value (either a null-pointer or a valid function pointer).
terminate_handler is a function pointer type taking no arguments and returning no value.
Calling this function does not introduce data races, and is synchronized with the calls to set_terminate.
No-throw guarantee: this function never throws exceptions.
- Set terminate handler function (function
- Function handling termination on exception (function