C++C++11C++14C++17Learn C++

What Is The alignas Alignment Specifier In Modern C++?

One of the features of Modern C++ is Alignment Support which comes with the C++11 standard. One of the new features of this support is a new keyword alignas which is the alignment specifier. For example, we can apply the alignas alignment specifier to define the minimum block size of data types such as the size of structs. In this post, we explain how we can use alignas in Modern C++ . What…
Read more