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

Access the result value, throwing if an error is held&period;

== Synopses

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

Access the result value, throwing if an error is held&period;


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

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

Access the result value, throwing if an error is held&period;


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

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

Access the result value, throwing if an error is held&period;


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

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

== Return Value

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


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