79 #ifndef UTIL_STATUSOR_H_ 80 #define UTIL_STATUSOR_H_ 146 template <
typename U>
151 template <
typename U>
178 template <
typename U>
184 template <
typename U>
291 template <
typename T>
295 value_ = std::move(value);
298 template <
typename T>
306 template <
typename T>
307 template <
typename U>
314 template <
typename T>
315 template <
typename U>
317 status_ = std::move(other.status_);
318 value_ = std::move(other.value_);
322 template <
typename T>
328 "NULL is not a valid constructor argument to StatusOr<T*>");
334 #endif // UTIL_STATUSOR_H_
static bool IsValueNull(const T *t)
void CheckValueNotNull(const T &value)
static void Crash(const util::Status &status)
StatusOr & operator=(const StatusOr &other)
const Status & status() const
static bool IsValueNull(const T &t)
const T & ValueOrDie() const
static bool IsValueNull(const U *t)
static bool IsValueNull(const U &t)