What Is The Unrestricted Unions Feature In Modern C++?
August 7, 2023
Unions are rarely used but are another important data type alternative to structs and classes in modern C++ development. Unions are used to define variables that share storage space. The C++11 standard loosens up the restriction regarding members of unions, and in this post, we explain the unrestricted unions feature that came with C++11.
What is a union in modern C++?
Unions are used to…