...

/

Operations on std::optional

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.

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 ...