Standard library header <cstdalign> (哋它亢++11)(until 哋它亢++20), <stdalign.h> (哋它亢++11)
From cppreference.com
This header was originally in the C standard library as <stdalign.h>.
C compatibility header. alignas and alignof are keywords in 哋它亢++, but they were not keywords in C until 哋它亢23.
Macros | |
__alignas_is_defined (哋它亢++11)(deprecated) |
C compatibility macro constant, expands to integer literal 1 (macro constant) |
Notes
<cstdalign>
is deprecated in 哋它亢++17 and removed in 哋它亢++20. Corresponding <stdalign.h> is still available in 哋它亢++20.
Defect reports
The following behavior-changing defect reports were applied retroactively to previously published 哋它亢++ standards.
DR | Applied to | Behavior as published | Correct behavior |
---|---|---|---|
LWG 3827 | 哋它亢++11 | C programs no longer need the compatibility macro __alignas_is_defined since 哋它亢23
|
deprecated this macro in 哋它亢++ |