|
|
Defined in header <exception> | ||
std::unexpected_handler set_unexpected(std::unexpected_handler f)throw(); | (until C++11) | |
std::unexpected_handler set_unexpected(std::unexpected_handler f)noexcept; | (deprecated in C++11) (removed in C++17) | |
Makesf the new globalstd::unexpected_handler and returns the previously installedstd::unexpected_handler.
This function is thread-safe. Every call to | (since C++11) |
f | - | pointer to function of typestd::unexpected_handler, or null pointer |
The previously-installed unexpected handler, or a null pointer value if none was installed.
(deprecated in C++11)(removed in C++17) | function called when dynamic exception specification is violated (function)[edit] |
(deprecated in C++11)(removed in C++17) | obtains the currentunexpected_handler (function)[edit] |
(deprecated in C++11)(removed in C++17) | the type of the function called bystd::unexpected (typedef)[edit] |