Connected features
Papers
5 · Virtual Feb 2022 → Brno 2026Adds std::expected<T, E>, a vocabulary type holding either a value or an error.
Renames unexpected::value() to error().
Adds and_then, or_else, transform and transform_error to std::expected.
Constrains std::expected's equality operators so non-comparable types don't cause hard errors.
Cleans up how std::unexpected interacts with std::expected.