logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

std::aligned_union< _Len, _Types > - Provide aligned storage for types.

Author

       Generated automatically by Doxygen for libstdc++ from the source code.

                                                    libstdc++           std::aligned_union<_Len,_Types>(3cxx)

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.

See Also