-
#include "tensorstore/util/result.h" - const T& tensorstore::Result<T>::operator*() const&;
- T& tensorstore::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 thetensorstore::Result<T>. Alternatively, see thevalue()member function for a similar API that guarantees crashing if there is no current value.- Pre:¶
this->ok() == true, otherwise the behavior is undefined.