#include "tensorstore/util/result.h"
const Ttensorstore::Result<T>::operator*() const&;
Ttensorstore::Result<T>::operator*() &;
const T&tensorstore::Result<T>::operator*() const&&;
T&tensorstore::Result<T>::operator*() &&;

Returns a reference to the current value.

Use this->ok() to verify that there is a current value within the tensorstore::Result<T>. Alternatively, see the value() member function for a similar API that guarantees crashing if there is no current value.

Pre:

this->ok() == true, otherwise the behavior is undefined.