util::Expected::Expected

Constructors

Synopses

Declared in <util/expected.h>

Construct holding a value-initialized result.

constexpr
Expected();
» more...

Construct holding a result value.

constexpr
Expected(T v);
» more...

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

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

Parameters

NameDescription
vThe result value to store.
uThe unexpected error to store.