Constructors
Declared in <util/result.h>
Constructs a successful result holding a default-constructed (void) value.
Result();
» more...
Move-constructs a result, transferring the value or error.
Result(Result&& other) = default;
» more...
Constructs a failed result holding the given error message.
Result(Error error);
» more...
Constructs a successful result holding the given value.
Result(T obj);
» more...
| Name | Description |
|---|---|
| other | the result to move from |
| error | the error carrier whose message is moved into the result |
| obj | the success value to store |