Constructors

Synopses

Declared in <util/expected.h>

Construct holding a value‐initialized result.

constexpr
Expected();

Construct holding a result value.

constexpr
Expected(T v);

Construct holding an error, from a util::Unexpected.

template<class Err>
constexpr
Expected(Unexpected<Err> u);

Parameters

Name

Description

v

The result value to store.

u

The unexpected error to store.

Created with MrDocs