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. |
| Defined in header <type_traits>
|
||
| template< std::size_t Len, class... Types > struct aligned_union; |
(C + + 11以来) | |
正しく
typeに記載されている任意の型のオブジェクトに整列させた初期化されていないストレージとして使用するのに適したPOD型であるメンバのtypedefTypesは、用意されています。ストレージのサイズは少なくとも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
|
Typesから任意の種類のストレージに適したPOD型 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 [静的] |
すべて 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. (公共の静的メンバ定数) |
[編集] 例
| This section is incomplete Reason: no example |
[編集] も参照してください
| (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. (クラステンプレート) |