template <typename T, typename = void>
struct OkOrFail
Defined at line 124 of file ../../third_party/android/platform/system/libbase/include/android-base/errors.h
The OkOrFail contract for a type T. This must be implemented for a type T if you want to use
OR_RETURN(stmt) where stmt evalues to a value of type T.
Public Methods
bool IsOk (const T & )
Checks if T is ok or fail.
template <typename U>
U Unwrap (T && )
Turns T into the success value.
void OkOrFail<T, type-parameter-0-1> (T && v)
Moves T into OkOrFail
<T
>, so that we can convert it to other types
void OkOrFail<T, type-parameter-0-1> ()
Defined at line 134 of file ../../third_party/android/platform/system/libbase/include/android-base/errors.h
void OkOrFail<T, type-parameter-0-1> (const T & )
Defined at line 135 of file ../../third_party/android/platform/system/libbase/include/android-base/errors.h