std::aligned_union
Материал из 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. |
| Заголовочный файл <type_traits>
|
||
| template< std::size_t Len, class... Types > struct aligned_union; |
(начиная с C++11) | |
Обеспечивает член ЬурейеЕ
type, что POD тип подходит для использования в качестве неинициализированные хранения, выровнены для объекта любого из типов, перечисленных в Types. Размер хранилища, по крайней мере Len. std::aligned_union также определяет строгие (крупный) требование выравнивания среди всех Types и делает его доступным как постоянный alignment_value.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.
Содержание |
[править] Член типов
| Имя
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
|
POD типа пригодны для хранения любых типов из
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. |
[править] Член постоянных
| alignment_value [static] |
строжайшей требование выравнивания всех 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. (public static константа-член) |
[править] Пример
| Этот раздел не завершён Причина: нет примера |
[править] См. также
| (C++11) |
получает выравнивания типа требований 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. (шаблон класса) |
| (C++11) |
определяет тип подходит для использования в качестве неинициализированные для хранения типов заданного размера 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. (шаблон класса) |