---
name: "std::aligned_storage"
section: "3cxx"
platform: "linux"
package: "libstdc++-12-doc"
version: "12.4.0-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/std::aligned_storage/3cxx"
---

# std::aligned\_storage(3cxx)

Alignment type.

## NAME

std::aligned\_storage\< \_Len, \_Align \> - Alignment type.

## SYNOPSIS

`#include <type_traits>`

## 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.

## Author

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