[#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). == Synopses Declared in `<util/expected.h>` Access the stored error (undefined behavior if a value is held). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr E const& xref:util/Expected-0b/error-0a1.adoc[error]() const & noexcept; ---- [.small]#xref:util/Expected-0b/error-0a1.adoc[_» more..._]# Access the stored error (undefined behavior if a value is held). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr E& xref:util/Expected-0b/error-00.adoc[error]() & noexcept; ---- [.small]#xref:util/Expected-0b/error-00.adoc[_» more..._]# Access the stored error (undefined behavior if a value is held). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr E&& xref:util/Expected-0b/error-0f.adoc[error]() && noexcept; ---- [.small]#xref:util/Expected-0b/error-0f.adoc[_» more..._]# == Return Value * A const reference to the stored error. * A reference to the stored error. * An rvalue reference to the stored error. [.small]#Created with https://www.mrdocs.com[MrDocs]#