Namespaces
Variants
Views
Actions

max_align_t

From cppreference.com
< c‎ | types
Revision as of 13:26, 2 November 2012 by P12bot (Talk | contribs)

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <stddef.h>
</td>

<td></td> <td></td> <tr class="t-dcl ">

<td >
typedef /*implementation-defined*/ max_align_t;
</td>

<td class="t-dcl-nopad"> </td> <td > (since C11) </td> </tr> Template:ddcl list end

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

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.

See also

C++ documentation for max_align_t