mrdocs::Expected::error

Access the stored error; precondition: !has_value().

Synopses

Access the stored error; precondition: !has_value().

constexpr
E const&
error() const & noexcept;

Access the stored error; precondition: !has_value().

constexpr
E&
error() & noexcept;

Access the stored error; precondition: !has_value().

constexpr
E const&&
error() const && noexcept;

Access the stored error; precondition: !has_value().

constexpr
E&&
error() && noexcept;

Return Value

  • Reference to the contained error.

  • Rvalue reference to the contained error.

Created with MrDocs