std::aligned_union
De cppreference.com
<metanoindex/>
<tbody> </tbody>| Definido no cabeçalho <type_traits>
|
||
template< std::size_t Len, class... Types > struct aligned_union; |
(desde C++11) | |
Fornece a
type membro typedef, que é um tipo POD adequado para utilização como armazenamento não inicializada, correctamente alinhadas para um objecto de qualquer um dos tipos enumerados no Types. O tamanho do armazenamento é de pelo menos Len. std::aligned_union também determina a estrita exigência de alinhamento (maior) entre todos Types e torna disponível como o 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.
Tipos de membro
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
|
do tipo POD adequado para o armazenamento de qualquer 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. |
Constantes de membros
alignment_value [estática] |
o requisito estrito alinhamento 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. (membro estático público constante) |
Exemplo
| Esta seção está incompleta Motivo: sem exemplo |
