<cstdalign>
In some C++ standard library implementations, this header includes the C standard library header <stdalign.h>
, and adds the associated names to the std
namespace. Because that header isn't implemented in MSVC, the <cstdalign>
header defines compatibility macros __alignas_is_defined
and __alignof_is_defined
.
Note
Because the <stdalign.h>
header defines macros that are keywords in C++, including it has no effect. The <stdalign.h>
header is deprecated in C++. The <cstdalign>
header is deprecated in C++17 and removed in the draft C++20 standard.
Requirements
Header: <cstdalign>
Namespace: std
Macros
Macro | Description |
---|---|
__alignas_is_defined |
A C compatibility macro that expands to the integer constant 1. |
__alignof_is_defined |
A C compatibility macro that expands to the integer constant 1. |
See also
Header files reference
C++ standard library overview
Thread safety in the C++ standard library
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru