Queries alignment requirements of a type.
Syntax
alignof( type-id )
Returns a value of type std::size_t.
Explanation
Returns the alignment, in bytes, required for any instance of the type indicated by type-id, which is either complete type, an array type, or a reference type.
If the type is reference type, the operator returns the alignment of referenced type; if the type is array type, alignment requirement of the element type is returned.
Keywords
alignof.
Notes
See alignm