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