Wrap up

Here's a summary of all the concepts we learned in this chapter!

We'll cover the following...

Things to remember

Here are the things to remember about std::variant:

  • It holds one of several alternatives in a type-safe way

  • No extra memory allocation is needed. The variant needs the ...