template <typename T>
class ErrOr
Defined at line 16 of file ../../src/developer/debug/zxdb/common/err_or.h
Specialization of the generic Result class that uses an Err.
Public Methods
void ErrOr<T> (Err e)
The Err must be set when constructing this object in an error state.
Defined at line 19 of file ../../src/developer/debug/zxdb/common/err_or.h
void ErrOr<T> (T t)
Defined at line 23 of file ../../src/developer/debug/zxdb/common/err_or.h
bool ok ()
Defined at line 25 of file ../../src/developer/debug/zxdb/common/err_or.h
bool has_error ()
Defined at line 26 of file ../../src/developer/debug/zxdb/common/err_or.h
const Err & err ()
Defined at line 28 of file ../../src/developer/debug/zxdb/common/err_or.h
const T & value ()
Defined at line 35 of file ../../src/developer/debug/zxdb/common/err_or.h
T & value ()
Defined at line 36 of file ../../src/developer/debug/zxdb/common/err_or.h
T take_value ()
Defined at line 37 of file ../../src/developer/debug/zxdb/common/err_or.h
bool operator bool ()
Implicit conversion to bool indicating "OK".
Defined at line 40 of file ../../src/developer/debug/zxdb/common/err_or.h
Err err_or_empty ()
Defined at line 42 of file ../../src/developer/debug/zxdb/common/err_or.h
T value_or_empty ()
Defined at line 47 of file ../../src/developer/debug/zxdb/common/err_or.h
T take_value_or_empty ()
Defined at line 50 of file ../../src/developer/debug/zxdb/common/err_or.h
bool operator== (const ErrOr<T> & other)
Comparators for unit tests.
Defined at line 55 of file ../../src/developer/debug/zxdb/common/err_or.h
bool operator!= (const ErrOr<T> & other)
Defined at line 56 of file ../../src/developer/debug/zxdb/common/err_or.h
fit::callback<void (ErrOr<T>)> FromPairCallback (fit::callback<void (const Err &, T)> cb)
Adapts an old-style callback that takes two parameters and returns a newer one that takes an
ErrOr.
Defined at line 60 of file ../../src/developer/debug/zxdb/common/err_or.h