std::aligned_union
Da cppreference.com.
![]() | Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Elemento definito nell'header <type_traits> | ||
template<std::size_t Len, class... Types> struct aligned_union; | (dal C++11) | |
Fornisce la
type
membro typedef, che è un tipo POD adatto per l'uso come deposito non inizializzata, correttamente allineato per un oggetto di uno dei tipi elencati in Types
. La dimensione della memoria è almeno Len
. std::aligned_union determina anche la (più grande) obbligo di allineamento più stretto tra tutti Types
e lo rende disponibile come alignment_value
costante.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.
Indice |
[modifica]Membri tipi
Nome 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 | il tipo POD adatto per lo stoccaggio di qualsiasi tipo di 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. |
[modifica]Membri costanti
alignment_value [statico] | il requisito più stretto allineamento di tutti 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. (pubblico membro statico costante) |
[modifica]Esempio
This section is incomplete Reason: no example |
[modifica]Vedi anche
(C++11) | ottiene requisiti di allineamento del tipo 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. (classe template) |
(C++11) | definisce il tipo idoneo all'uso come memoria non inizializzato per tipi di dimensione data 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 template) |