std::unexpected
From cppreference.com
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 Template:cpp. The default Template:cpp calls Template:cpp.
Contents |
Parameters
(none)
Return value
(none)
Exceptions
noexcept specification:
noexcept