Unions & std::variant in C++
A description of unions in C++, their uses, how they differ from unions in C, and std::variant, C++’s type-safe alternative.
Tags: cpp