std::aligned_union
Aus cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
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.
You can help to correct and verify the translation. Click here for instructions.
Inhaltsverzeichnis |
[Bearbeiten] 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. |
[Bearbeiten] 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) |
[Bearbeiten] Beispiel
This section is incomplete Reason: no example |
[Bearbeiten] Siehe auch
(C++11) |
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) |
(C++11) |
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) |