std::aligned_union
De 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. |
Déclaré dans l'en-tête <type_traits>
|
||
template< std::size_t Len, class... Types > struct aligned_union; |
(depuis C++11) | |
Fournit la
type
membre typedef, qui est un type POD peut être utilisé comme stockage non initialisée, alignée correctement pour un objet de l'un des types énumérés dans Types
. La taille de la mémoire est au moins Len
. std::aligned_union détermine également l'exigence stricte d'alignement (plus) parmi tous Types
et le rend disponible le alignment_value
constante .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.
Sommaire |
[modifier] Types de membres
Nom
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
|
le type de POD adapté pour le stockage de tout type de
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. |
[modifier] Constantes membres
alignment_value [ statique ]Original: static The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
l'exigence stricte alignement de tous 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. (constante membre statique publique) |
[modifier] Exemple
This section is incomplete Reason: no example |
[modifier] Voir aussi
(C++11) |
obtient les exigences d'alignement du type (classe générique) |
(C++11) |
définit le type approprié pour une utilisation comme stockage non initialisée pour les types de taille donné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. (classe générique) |