description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | |||
---|---|---|---|---|---|---|---|---|
Learn more about: alignment_of Class |
alignment_of Class |
12/11/2019 |
|
|
4141c59a-f94e-41c4-93fd-9ea578b27387 |
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.
template <class Ty>
struct alignment_of;
Ty
The type to query.
The type query holds the value of the alignment of the type Ty.
Header: <type_traits>
Namespace: std