cpp/error/terminate handler

is the function pointer type (pointer to function that takes no arguments and returns void), which is installed and queried by the functions std and std and called by std.

A shall terminate execution of the program without returning to the caller, otherwise the behavior is undefined.

The C++ implementation provides a default function, which calls. If the null pointer value is installed (by means of std), the implementation may restore the default handler instead.