std::aligned_union< _Len, _Types > - Provide aligned storage for types.
Contents
Detailed Description
template<size_t_Len,typename..._Types>
struct std::aligned_union< _Len, _Types >"Provide aligned storage for types.
[meta.trans.other]
Provides aligned storage for any of the provided types of at least size _Len.
Seealso
aligned_storage
Deprecated
Deprecated in C++23.
Member Typedef Documentation
template<size_t_Len,typename..._Types>typedefaligned_storage<_S_len,alignment_value>::typestd::aligned_union<_Len,_Types>::type
The storage.
Name
std::aligned_union< _Len, _Types > - Provide aligned storage for types.
Synopsis
#include <type_traits>
PublicTypestypedefaligned_storage< _S_len, alignment_value >::type type
The storage.
StaticPublicAttributesstatic const size_t alignment_value
The value of the strictest alignment of _Types.
