STD::ALIGNED_UNION(3cxx)
π
std::aligned_union< _Len, _Types > β 3cxx manual page π
okay so bestie, this is the 3cxx manual page for std::aligned_union< _Len, _Types >. it's a type-traits girlie and we are keeping every single detail, no cap. π
π NAME π
std::aligned_union< _Len, _Types > β Provide aligned storage for types.
β¨ SYNOPSIS β¨
#include <type_traits>
πΈ Public Types πΈ
using type = typename aligned_storage< _S_len, alignment_value >::typeβ The storage. π
β Static Public Attributes β
static const size_t alignment_valueβ The value of the strictest alignment of_Types.
π¦ Detailed Description π¦
Here's the template in all its main-character glory:
template<size_t _Len, typename... _Types>
struct std::aligned_union< _Len, _Types >
The source's description line has a stray opening quote, and we are preserving it exactly: "Provide aligned storage for types.
It's tagged [meta.trans.other] β iykyk. It provides aligned storage for any of the provided types of at least size _Len. slay.
π See also
aligned_storage
π Deprecated
Deprecated in C++23. That's it, that's the warning β it's giving βlegacy eraβ energy, bestie. π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
Final sign-off π«Ά: source/version is libstdc++, manual tag (3cxx) (with the footer's libststd::aligned_un... _Len, _Types > page tag), and the footer doesn't list a separate date β so I'm not inventing one. Mwah π
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms