util::Result::Result

Constructors

Synopses

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...

Parameters

NameDescription
otherthe result to move from
errorthe error carrier whose message is moved into the result
objthe success value to store