[#util-Expected-0b-error-0af]
= xref:util.adoc[util]::xref:util/Expected-0b.adoc[Expected]::error
:relfileprefix: ../../
:mrdocs:

Access the stored error (undefined behavior if a value is held)&period;

== Synopses

Declared in `&lt;util&sol;expected&period;h&gt;`

Access the stored error (undefined behavior if a value is held)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
E const&
xref:util/Expected-0b/error-0a1.adoc[error]() const &amp; noexcept;
----

[.small]#xref:util/Expected-0b/error-0a1.adoc[_» more&period;&period;&period;_]#

Access the stored error (undefined behavior if a value is held)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
E&
xref:util/Expected-0b/error-00.adoc[error]() &amp; noexcept;
----

[.small]#xref:util/Expected-0b/error-00.adoc[_» more&period;&period;&period;_]#

Access the stored error (undefined behavior if a value is held)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
E&&
xref:util/Expected-0b/error-0f.adoc[error]() &amp;&amp; noexcept;
----

[.small]#xref:util/Expected-0b/error-0f.adoc[_» more&period;&period;&period;_]#

== Return Value

* A const reference to the stored error&period;
* A reference to the stored error&period;
* An rvalue reference to the stored error&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
