◐ Shell
clean mode source ↗

C + + Konzepte: DefaultConstructible – cppreference.com

Aus cppreference.com

<metanoindex/>

Gibt an, dass eine Instanz des Typs kann standardmäßig gebaut .

Original:

Specifies that an instance of the type can be default constructed.

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

Anforderungen

Der Typ muss Umsetzung der folgenden Funktionen:

Original:

The type must implement the following functions:

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

Type::Type

<tbody> </tbody>

Standardkonstruktor: constructs an instance of a type with default contents.

The following expressions must have the specified effects:

Expression

Original:

Expression

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

Effects
Type a1;

a1 wird default-initialisiert .

Original:

a1 is default-initialized.

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

Type a2{};

a2 wird Wert initialisiert .

Original:

a2 is value-initialized.

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

Type{}
Type()

ein temporäres Objekt vom Typ Type Wert ist initialisiert .

Original:

a temporary object of type Type is value-initialized.

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

Siehe auch