Namespaces
Variants
Views
Actions

Standard library header <stdalign.h> (C11)(deprecated in C23)

From cppreference.com
< c‎ | header

This header is part of the types support library.

Macros

alignas
(C11)(removed in C23)
convenience macro, expands to keyword _Alignas
(keyword macro)
alignof
(C11)(removed in C23)
convenience macro, expands to keyword _Alignof
(keyword macro)

Constants

__alignas_is_defined
(C11)(removed in C23)
expands to integer constant 1
(macro constant)
__alignof_is_defined
(C11)(removed in C23)
expands to integer constant 1
(macro constant)

[edit] Synopsis

#if __STDC_VERSION__ < 202311L
#define alignas _Alignas
#define alignof _Alignof
#define __alignas_is_defined 1
#define __alignof_is_defined 1
#endif