C++23 publishes a standard vocabulary for value-or-error results
engineeringcppcpp23expectederrorsISO/IEC 14882:2024 publishes the revision known as C++23. std::expected makes an error alternative part of a function's result type while leaving recovery and exception policy to the interface designer.