Unions & std::variant in C++
Introduction A union in C++ is almost like a union in C (so, if you haven’t read that article, you probably should), but there are a number of non-trivial differences to make it necessary to have a separate article for...