##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# Type alignment control

From cppreference.com
< c‎ | header

Template:c/align/navbar

This header provides four macros for specifying and querying the alignment of types and objects.

Defined in header `<stdalign.h>`
##### Macros
alignas (C11) | set the alignment requirement of a type or an object (function macro) [edit]
alignof (C11) | get the alignment requirement of a type or an object (function macro) [edit]
alignas_is_defined (C11) | expands to the integer constant 1 (macro constant) [edit]
alignof_is_defined (C11) | expands to the integer constant 1 (macro constant) [edit]

### [edit] See also

C++ documentation for Standard library header <cstdalign>

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/header/align&oldid=71929"