---
name: "std::alignment_of"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/std::alignment_of"
---

# std::alignment\_of(3)

alignment\_of

## NAME

std::alignment\_of\< \_Tp \> - alignment\_of

## SYNOPSIS

\#include \<type\_traits\>

Inherits **std::integral\_constant\< std::size\_t, alignof(\_Tp)\>**.

### Public Types

using **type**\
 using **value\_type**\

### Public Member Functions

constexpr **operator value\_type** () const noexcept\

### Static Public Attributes

static constexpr std::size\_t **value**\

## Detailed Description

### template\<typename \_Tp\>

struct std::alignment\_of\< \_Tp \>"alignment\_of

## Author

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