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. |
| Defined in header <type_traits>
|
||
| template< std::size_t Len, class... Types > struct aligned_union; |
(ya que C + +11) | |
Proporciona la
type miembro typedef, que es un tipo POD adecuado para uso como almacenamiento sin inicializar, correctamente alineados para un objeto de cualquiera de los tipos enumerados en Types. El tamaño de almacenamiento es de al menos Len. std::aligned_union determina también la más estricta (el más grande) requisito de alineación entre todos Types y la hace disponible como 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.
Contenido |
[editar] Tipos de miembros
| Nombre
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
|
el tipo POD adecuados para el almacenamiento de cualquier tipo 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. |
[editar] Constantes de miembros
| alignment_value [estático] |
el más estricto requisito de alineación de todos 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. (público miembro constante estática) |
[editar] Ejemplo
| This section is incomplete Reason: no example |
[editar] Ver también
| (C++11) |
obtiene requisitos del tipo de alineación 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. (clase de plantilla) |
| (C++11) |
lo contrario. define el tipo adecuado para su uso como almacenamiento sin inicializar para tipos de tamaño dado 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. (clase de plantilla) |