alignment_of Class
Gets alignment of the specified type. This struct is implemented in terms of alignof
. Use alignof
directly when you simply need to query an alignment value. Use alignment_of
when you need an integral constant, for example when doing tag dispatch.
Syntax
template <class Ty>
struct alignment_of;
Parameters
Ty
The type to query.
Remarks
The type query holds the value of the alignment of the type Ty.
Requirements
Header: <type_traits>
Namespace: std
See also
คำติชม
https://aka.ms/ContentUserFeedback
เร็วๆ นี้: ตลอดปี 2024 เราจะขจัดปัญหา GitHub เพื่อเป็นกลไกคำติชมสำหรับเนื้อหา และแทนที่ด้วยระบบคำติชมใหม่ สำหรับข้อมูลเพิ่มเติม ให้ดู:ส่งและดูข้อคิดเห็นสำหรับ