cppcoro
cppcoro copied to clipboard
Add expected<T, E> type
This is needed for #41.
Also consider adding support for using co_await
to unwrap an expected<T,E>
value inside a function that returns expected<U,E>
.
See https://github.com/toby-allsopp/coroutine_monad for inspiration.