Constructors

Synopses

Declared in <util/result.h>

Constructs a successful result holding a default‐constructed (void) value.

Result();

Move‐constructs a result, transferring the value or error.

Result(Result&& other) = default;

Constructs a failed result holding the given error message.

Result(Error error);

Constructs a successful result holding the given value.

Result(T obj);

Parameters

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

Created with MrDocs