util::Expected::value

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 &;
» more...

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

constexpr
T&
value() &;
» more...

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

constexpr
T&&
value() &&;
» more...

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.