Access the stored error value.

Synopses

Declared in <util/expected.h>

Access the stored error value.

constexpr
E const&
error() const & noexcept;

Access the stored error value.

constexpr
E&
error() & noexcept;

Access the stored error value.

constexpr
E&&
error() && noexcept;

Return Value

  • A const reference to the stored error.

  • A reference to the stored error.

  • An rvalue reference to the stored error.

Created with MrDocs