-
#include "tensorstore/util/result.h"
- bool tensorstore::Result<T>::ok() const;
- bool tensorstore::Result<T>::has_value() const;
- explicit tensorstore::Result<T>::operator bool() const noexcept;
Returns
true
if this represents a success state,false
for a failure state.value()
is valid only iffhas_value()
istrue
.status()
is valid iffhas_value()
is false.