max_align_t

来自cppreference.com
< c‎ | types

在头文件 <stddef.h> 中定义
typedef /*implementation-defined*/ max_align_t;
max_align_t是一种类型的对齐要求至少是严格的(大),每标量类型.
原文:
max_align_t is a type whose alignment requirement is at least as strict (as large) as that of every scalar type.
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

[编辑] 注释

返回的指针分配的功能,如malloc适当的任何对象对齐,这意味着他们至少对齐严格max_align_t.
原文:
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.
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里
max_align_t通常是最大的标量类型,这是long double在大多数平台上,并对齐要求是8或16的代名词.....
原文:
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.
这段文字是通过 Google Translate 自动翻译生成的。
您可以帮助我们检查、纠正翻译中的错误。详情请点击这里

[编辑] 另请参阅

C++ documentation for max_align_t