Template Function unwrap_expected(tl::expected<Ret, Err>(*)(Args…))

Function Documentation

template<typename Ret, typename Err, typename ...Args>
auto unwrap_expected(tl::expected<Ret, Err> (*method)(Args...))

Wrapper function binding tl::expected return types in free functions with nanobind.

Returns:

The unwrapped value, or throw a runtime_error.