mrdocs::polyfill::unexpected::error
error overloads
Synopses
Declared in <mrdocs/polyfill/expected.hpp>
Return a const reference to the stored error.
[[nodiscard]]
constexpr
E const&
error() const & noexcept;
Return a reference to the stored error.
[[nodiscard]]
constexpr
E&
error() & noexcept;
Return a const rvalue reference to the stored error.
[[nodiscard]]
constexpr
E const&&
error() const && noexcept;
Return a rvalue reference to the stored error.
[[nodiscard]]
constexpr
E&&
error() && noexcept;
Return Value
-
Const reference to
E. -
Reference to
E. -
Const rvalue reference to
E. -
Rvalue reference to
E.
|
The return value should not be discarded. |
Created with MrDocs