-
#include "tensorstore/util/result.h"
-
template <typename... Args>
T& tensorstore::Result<T>::emplace(Args&&... args); -
template <typename U, typename... Args>
T& tensorstore::Result<T>::emplace(std::initializer_list<U> il,
Args&&... args); Reconstructs the contained value in-place with the given forwarded arguments.
Example:
Result<Foo> opt = absl::UnknownError(""); opt.emplace(arg1,arg2,arg3); // Constructs Foo(arg1,arg2,arg3)