#include "tensorstore/util/result.h"
template <typename U>
friend bool tensorstore::Result<T>::operator==(const Result<T>a,
                                               
const Result<U>b);
template <typename U>
friend bool
tensorstore::Result<T>::operator==(const Result<T>aconst Ub);
template <typename U>
friend bool
tensorstore::Result<T>::operator==(const Uaconst Result<T>b);

Compares two results for equality.

Two results are considered equal if:

  • they both contain error values that are equal; or

  • they both contain values that are equal; or

  • they both contain values of type void.

Requires:

T and U are equality comparable or both void.