2 ms·
> The purpose is exactly to express possibly missing return values Operative word: type-safe. std::optional is not that. > I also don't see why you would ever
by masklinn 9y ago
> The purpose is exactly to express possibly missing return values
Operative word: type-safe. std::optional is not that.
> I also don't see why you would ever use it in the way you're describing.
I'm literally just describing the semantics of std::optional.