We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
它并非标准的,一般情况下不该去使用它。 可使用标准的 alignas 和 alignof 运算符。
alignas
alignof
The text was updated successfully, but these errors were encountered:
虽然但是, #pragma pack(n) 和 alignas 的功能不同。
#pragma pack(n)
对于需要更改对齐的情况,相对于原生对齐 #pragma pack 只会改小对齐,而 alignas 只会改大对齐。
#pragma pack
Sorry, something went wrong.
的确如此。
No branches or pull requests
它并非标准的,一般情况下不该去使用它。
可使用标准的
alignas
和alignof
运算符。The text was updated successfully, but these errors were encountered: