A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/reference/exception/get_terminate/ below:

function

<exception>

std::get_terminate
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).



Parameters none

Return value 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.



Data races Calling this function does not introduce data races, and is synchronized with the calls to set_terminate.

Exception safetyNo-throw guarantee: this function never throws exceptions.

See also
set_terminate
Set terminate handler function (function)
terminate
Function handling termination on exception (function)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4