Hacker News new | ask | show | jobs
by kllrnohj 1351 days ago
> At the end of the day `std::optional<T>` is only marginally better than `T*`.

It's dramatically better than `T*` if your data isn't a pointer in the first place.