#include "tensorstore/util/result.h"
template <typename U>
  
requires std::is_constructible_v<
               
T,
              
 std::add_const_t<std::add_lvalue_reference_t<U>>> &&
          
 std::is_convertible_v<
               
std::add_const_t<std::add_lvalue_reference_t<U>>,
              
 T>
tensorstore::Result<T>::Result(const Result<U>rhs);
template <typename U>
  
requires std::is_constructible_v<T,
                                  
 std::add_rvalue_reference_t<U>> &&
          
 std::is_convertible_v<std::add_rvalue_reference_t<U>, T>
tensorstore::Result<T>::Result(Result<U>&rhs);

Constructs from an existing result with a convertible value type.

Note

This constructor is conditionally implicit if T is implicitly constructible from U.

Requires:

T is constructible from U and is not constructible from Result<U>.