[#util-Expected-0b-error-0a1]
= 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;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
E const&
error() const &amp; noexcept;
----

== Return Value

A const reference to the stored error&period;


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