21 Language support library [language.support]

21.8 Exception handling [support.exception]

21.8.4 Abnormal termination [exception.terminate]

21.8.4.2 set_­terminate [set.terminate]

terminate_handler set_terminate(terminate_handler f) noexcept;

Effects: Establishes the function designated by f as the current handler function for terminating exception processing.

Remarks: It is unspecified whether a null pointer value designates the default terminate_­handler.

Returns: The previous terminate_­handler.