◐ Shell
clean mode source ↗

std::aligned_union – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

definiert in Header

<type_traits>

template< std::size_t Len, class... Types > struct aligned_union;

(seit C++11)

Bietet das Mitglied typedef type, die eine POD-Typ eignet sich für den Einsatz als initialisierten Speicher, richtig für ein Objekt von einer der Typen in Types aufgeführt ausgerichtet ist. Die Größe des Speichers zumindest Len. std::aligned_union bestimmt auch die strengsten (größte) Angleichung Voraussetzung bei allen Types und stellt sie als Konstante alignment_value .

Original:

Provides the member typedef type, which is a POD type suitable for use as uninitialized storage, correctly aligned for an object of any of the types listed in Types. The size of the storage is at least Len. std::aligned_union also determines the strictest (largest) alignment requirement among all Types and makes it available as the constant alignment_value.

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

Mitglied Typen

Name

Original:

Name

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

Definition
type

Die POD-Typ geeignet für die Lagerung von jeder Art von Types

Original:

the POD type suitable for storage of any type from Types

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

Mitglied Konstanten

alignment_value

[statisch]

die strengste Angleichung Voraussetzung aller Types

Original:

the strictest alignment requirement of all Types

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


(public static Mitglied konstanten)

Beispiel

Siehe auch

Ruft den Type der Alignment-Anforderungen

Original:

obtains the type's alignment requirements

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


(Klassen-Template) [edit]

definiert den Typ für die Verwendung als Speicher für initialisierten Arten von vorgegebener Größe

Original:

defines the type suitable for use as uninitialized storage for types of given size

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


(Klassen-Template) [edit]