std::aligned_union(3cxx)

std::aligned_union3cxx

Provide aligned storage for types.

Usage

#include <type_traits>

Public Types

typedef aligned_storage< _S_len, alignment_value >::type type
The storage.

Static Public Attributes

static const size_t alignment_value
The value of the strictest alignment of _Types.

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.

See also

aligned_storage

Member Typedef Documentation

template<size_t _Len, typename... _Types> typedef aligned_storage<_S_len,alignment_value>::type std::aligned_union< _Len, _Types >::type

The storage.

Releases

4 releases since Debian 10 (Buster); the text changed 3 times.

  1. 10
  2. 11
  3. 12
  4. 13

Author

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

From libstdc++-12-doc 12.4.0-5 in Debian 13 (Trixie). Also shipped by libstdc++-13-doc, libstdc++-14-doc. Parsed by carta from the page's man source.