Namespaces
Variants
Views
Actions

std::unexpected

From cppreference.com
< cpp‎ | error
Revision as of 19:37, 27 March 2012 by Cubbi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:cpp/error/sidebar

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
  

See also

Template:cpp/error/exception/dcl list unexpected handler