◐ Shell
clean mode source ↗

std::error_code::operator= – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

template< class ErrorCodeEnum > error_code& operator=( ErrorCodeEnum e );

(seit C++11)

Ersetzt den Fehlercode und die entsprechende Kategorie mit denen repräsentieren Fehlercode enum e .

Original:

Replaces the error code and corresponding category with those representing error code enum e.

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

Entspricht *this = std::make_error_code(e). Die Überlast beteiligt Überlastung Beschlüsse nur, wenn std::is_error_code_enum<ErrorCodeEnum>::value == true .

Original:

Equivalent to *this = std::make_error_code(e). The overload participates in overload resolutions only if std::is_error_code_enum<ErrorCodeEnum>::value == true.

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

Parameter

e -

Fehlercode enum zu konstruieren

Original:

error code enum to construct

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

Rückgabewert

*this

Ausnahmen

Notes

Copy-Zuweisungsoperator wird implizit definiert .

Original:

Copy-assignment operator is defined implicitly.

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

Siehe auch

weist einen weiteren Fehler-Code

Original:

assigns another error code

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


(öffentliche Elementfunktion) [edit]