C++11/14/17 std::expected implementation with functional extensions
C++11/14/17 std::expected with functional-style extensions
tl-expected$ #include <tl/expected.hpp>$ tl::expected<int, std::string> result = tl::expected<int, std::string>(42);$ auto transformed = result.map([](int x) { return x * 2; });