On this page
  1. max_align_t
  2. Include
  3. Signature & Overview
  4. Notes & Pitfalls
  5. Example

max_align_t

Prev: offsetof | Up: stddef.h | Next: stdbool.h
Rel: stddef.h, stdint, stdbool & limits Guide
Ref: cppreference — max_align_t
Tags: #public #prog #c #stdlib #stddef #tier/specialized


Include

#include <stddef.h>

Signature & Overview

typedef /* scalar/struct */ max_align_t;

Type whose alignment is at least as strict as every fundamental type (C11).

Notes & Pitfalls

Example

#include <assert.h>
#include <stddef.h>

int main(void) { assert(_Alignof(max_align_t) >= _Alignof(double)); }

Linked from

Related notes