-
#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
func
withResult
-wrapped arguments.The return value of
func
is wrapped in aResult
if it not already aResult
instance.