[set.terminate] # 17 Language support library [[support]](./#support) ## 17.9 Exception handling [[support.exception]](support.exception#set.terminate) ### 17.9.5 Abnormal termination [[exception.terminate]](exception.terminate#set.terminate) #### 17.9.5.2 set_terminate [set.terminate] [🔗](#lib:set_terminate) `terminate_handler set_terminate(terminate_handler f) noexcept; ` [1](#1) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/support.tex#L4036) *Effects*: Establishes the function designated by f as the current handler function for terminating exception processing[.](#1.sentence-1) [2](#2) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/support.tex#L4041) *Returns*: The previous terminate_handler[.](#2.sentence-1) [3](#3) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/support.tex#L4045) *Remarks*: It is unspecified whether a null pointer value designates the defaultterminate_handler[.](#3.sentence-1)