17
Language support library
[support]
17.9
Exception handling
[support.exception]
17.9.5
Abnormal termination
[exception.terminate]
17.9.5.4
terminate
[terminate]
🔗
[
[
noreturn
]
]
void
terminate
(
)
noexcept
;
1
#
Effects
: Calls a
terminate_
handler
function
.
It is unspecified which
terminate_
handler
function will be called if an exception is active during a call to
set_
terminate
.
Otherwise calls the current
terminate_
handler
function
.
[
Note
1
:
A default
terminate_
handler
is always considered a callable handler in this context
.
—
end note
]
2
#
Remarks
: Called by the implementation when exception handling must be abandoned for any of several reasons (
[except.
terminate]
)
.
May also be called directly by the program
.