Operations on std::optional
Creating and accessing is just the tip of the iceberg. There are several operations that can be performed on std::optional.
We'll cover the following...
Let’s see what other operations are available for the type.
Changing the Value & Object Lifetime
If you have an existing optional object, then you can quickly ...