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

What Is The alignof Expression In Modern C++?

Alignment support comes with the C++11 standard and it is one of the recent features of Modern C++ compilers. One part of this support is a new keyword alignof which is used for the alignment requirement of a type. In this post, we explain how we can use alignof in Modern C++. What is alignment support in modern C++? When we talk about ‘alignment’ in C++ it means a set of hints…
Read more