alignof operator
alignof operator (since C++11)
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