Annex D (normative) Compatibility features [depr]

D.11 Violating exception-specifications [exception.unexpected]

D.11.4 unexpected [unexpected]

[[noreturn]] void unexpected();

Remarks: Called by the implementation when a function exits via an exception not allowed by its exception-specification ([except.unexpected]), in effect after evaluating the throw-expression ([unexpected.handler]). May also be called directly by the program.

Effects: Calls the current unexpected_handler function. [ Note: A default unexpected_handler is always considered a callable handler in this context.  — end note ]