◐ Shell
clean mode source ↗

std::aligned_union — cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

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.

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.

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)

Exemple

Voir aussi

obtient les exigences d'alignement du type
(classe générique) [edit]

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) [edit]