Difference between revisions of "cpp/error/unexpected"
From cppreference.com
m (Text replace - "/sidebar" to "/navbar") |
m (r2.7.3) (Robot: Adding de, es, fr, it, ja, pt, ru, zh) |
||
Line 25: | Line 25: | ||
{{dcl list template | cpp/error/dcl list unexpected_handler}} | {{dcl list template | cpp/error/dcl list unexpected_handler}} | ||
{{dcl list end}} | {{dcl list end}} | ||
+ | |||
+ | [[de:cpp/error/unexpected]] | ||
+ | [[es:cpp/error/unexpected]] | ||
+ | [[fr:cpp/error/unexpected]] | ||
+ | [[it:cpp/error/unexpected]] | ||
+ | [[ja:cpp/error/unexpected]] | ||
+ | [[pt:cpp/error/unexpected]] | ||
+ | [[ru:cpp/error/unexpected]] | ||
+ | [[zh:cpp/error/unexpected]] |
Revision as of 13:46, 2 November 2012
Defined in header <exception>
|
||
[[noreturn]] void unexpected(); |
(deprecated) | |
std::unexpected()
is called by the C++ runtime when a dynamic exception specification is violated: an exception is thrown from a function whose exception specification forbids exceptions of this type.
std::unexpected()
may also be called directly from the program.
In either case, std::unexpected
calls the currently installed std::unexpected_handler. The default std::unexpected_handler calls std::terminate.
Contents |
Parameters
(none)
Return value
(none)
Exceptions
noexcept specification:
noexcept