template<typename T>
onex::Result struct

Holds a value of type T together with an optional error code. Implicitly convertible to bool — true means success.

Constructors, destructors, conversion operators

operator bool() const explicit
Returns true when the operation succeeded.

Public variables

T value
The result value (valid only when error is kNone).
Error error
Error status of the operation.