◐ Shell
clean mode source ↗

std::unexpected – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

definiert in Header

<exception>

[[noreturn]] void unexpected();

(veraltet)

std::unexpected() wird von der C + + Runtime aufgerufen, wenn ein dynamischen Exception-Spezifikation verletzt wird: eine Ausnahme von einer Funktion, deren Exception-Spezifikation verbietet Ausnahmen dieser Art geworfen .

Original:

std::unexpected() is called by the C++ runtime when a dynamischen Exception-Spezifikation is violated: an exception is thrown from a function whose exception specification forbids exceptions of this type.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

std::unexpected() kann auch direkt aus dem Programm aufgerufen werden .

Original:

std::unexpected() may also be called directly from the program.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

In beiden Fällen ruft std::unexpected die derzeit installierten std::unexpected_handler. Der Standardwert std::unexpected_handler Anrufe std::terminate .

Original:

In either case, std::unexpected calls the currently installed std::unexpected_handler. The default std::unexpected_handler calls std::terminate.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Parameter

(None)

Original:

(none)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Rückgabewert

(None)

Original:

(none)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Ausnahmen

Siehe auch

der Typ der Funktion durch std::unexpected genannt

Original:

the type of the function called by std::unexpected

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(typedef) [edit]