##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# max_align_t

From cppreference.com
< c‎ | types

Defined in header `<stddef.h>` |  |
typedef /*implementation-defined*/ max_align_t; |  | (since C11)

max_align_t is a type whose alignment requirement is at least as strict (as large) as that of every scalar type.

### [edit] Notes

Pointers returned by allocation functions such as malloc are suitably aligned for any object, which means they are aligned at least as strict as max_align_t.

max_align_t is usually synonymous with the largest scalar type, which is long double on most platforms, and its alignment requirement is either 8 or 16.

### [edit] See also

C++ documentation for max_align_t

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/types/max_align_t&oldid=62634"