43 lines
1.2 KiB
Markdown
43 lines
1.2 KiB
Markdown
[terminate]
|
||
|
||
# 17 Language support library [[support]](./#support)
|
||
|
||
## 17.9 Exception handling [[support.exception]](support.exception#terminate)
|
||
|
||
### 17.9.5 Abnormal termination [[exception.terminate]](exception.terminate#terminate)
|
||
|
||
#### 17.9.5.4 terminate [terminate]
|
||
|
||
[ð](#lib:terminate)
|
||
|
||
`[[noreturn]] void terminate() noexcept;
|
||
`
|
||
|
||
[1](#1)
|
||
|
||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/support.tex#L4075)
|
||
|
||
*Effects*: Calls a terminate_handler function[.](#1.sentence-1)
|
||
|
||
It is unspecified whichterminate_handler function will be called if an exception is active
|
||
during a call to set_terminate[.](#1.sentence-2)
|
||
|
||
Otherwise calls the current terminate_handler function[.](#1.sentence-3)
|
||
|
||
[*Note [1](#note-1)*:
|
||
|
||
A
|
||
default terminate_handler is always considered a callable handler in
|
||
this context[.](#1.sentence-4)
|
||
|
||
â *end note*]
|
||
|
||
[2](#2)
|
||
|
||
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/support.tex#L4087)
|
||
|
||
*Remarks*: Called by the implementation when exception
|
||
handling must be abandoned for any of several reasons ([[except.terminate]](except.terminate "14.6.2 The std::terminate function"))[.](#2.sentence-1)
|
||
|
||
May also be called directly by the program[.](#2.sentence-2)
|