Access the result value, throwing if an error is held.

Synopses

Declared in <util/expected.h>

Access the result value, throwing if an error is held.

constexpr
T const&
value() const &;

Access the result value, throwing if an error is held.

constexpr
T&
value() &;

Access the result value, throwing if an error is held.

constexpr
T&&
value() &&;

Return Value

  • A const reference to the stored result value.

  • A reference to the stored result value.

  • An rvalue reference to the stored result value.

Created with MrDocs