Representing Optional Values with std::optional
Learn to use std::optional for optional values, returns, member variables, enums, sorting, and comparisons.
Let's begin by exploring std::optional and some of its important use cases.
Learn to use std::optional for optional values, returns, member variables, enums, sorting, and comparisons.
Let's begin by exploring std::optional and some of its important use cases.