#include "tensorstore/util/result.h"
template <typename Func, typename... T>
FlatResult<
    
std::invoke_result_t<Func&&, UnwrapQualifiedResultType<T>...>>
tensorstore::MapResult(Func&funcT&&... arg);

Tries to call func with Result-wrapped arguments.

The return value of func is wrapped in a Result if it not already a Result instance.

Returns:

std::forward<Func>(func)(UnwrapResult(std::forward<T>(arg))...) if no Result-wrapped arg is an in error state. Otherwise, returns the error absl::Status of the first Result-wrapped arg in an error state.