-
#include "tensorstore/util/result.h" -
template <typename Func, typename... T>
FlatResult<
std::invoke_result_t<Func&&, UnwrapQualifiedResultType<T>...>>
tensorstore::MapResult(Func&& func, T&&... arg); Tries to call
funcwithResult-wrapped arguments.The return value of
funcis wrapped in aResultif it not already aResultinstance.