alignment_of Class

 

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

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;

Parameters

Ty
The type to query.

The type query holds the value of the the alignment of the type Ty.

Header: <type_traits>

Namespace: std

<type_traits>
aligned_storage Class

Show: