Skip to content
UPEEC

std::expected

Holds either a value or an error (C++23) — error handling without exceptions.

Intermediate
Comments 0

std::expected<int, Error> parse(std::string_view s);

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.