What is aligned_union in Modern C++
April 3, 2023
The C++11 standard introduced alignment support as one of the many features of the C++ programming language that can be used with the latest C++ compilers today. One of the new features of this support was a new keyword align std::aligned_union that is used to provide a nested type which can be used as an uninitialized storage for any object whose size is at most the object size stated by…