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_storage< _Len, _Align > - Alignment type.

Author

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

                                                    libstdc++         std::aligned_storage<_Len,_Align>(3cxx)

Detailed Description

template<std::size_t_Len,std::size_t_Align=__alignof__(typename__aligned_storage_msa<_Len>::__type)>
       struct std::aligned_storage< _Len, _Align >"Alignment type.

       The value of _Align is a default-alignment which shall be the most stringent alignment requirement for
       any C++ object type whose size is no greater than _Len (3.9). The member typedef type shall be a POD type
       suitable for use as uninitialized storage for any object whose size is at most _Len and whose alignment
       is a divisor of _Align.

       Deprecated
           Deprecated in C++23. Uses can be replaced by an array std::byte[_Len] declared with alignas(_Align).

Name

       std::aligned_storage< _Len, _Align > - Alignment type.

Synopsis

       #include <type_traits>

See Also