Introduction
Let's take a look at what you'll learn in this chapter!
We'll cover the following...
Why Use std::variant
Another handy wrapper type that we get in C++17 is std::variant
. This is a type-safe union - you can store different type variants with the proper object lifetime guarantee. The new type offers a huge ...