[#util-Result-has_value]
= xref:util.adoc[util]::xref:util/Result.adoc[Result]::has&lowbar;value
:relfileprefix: ../../
:mrdocs:

std&colon;&colon;optional methods, so functions returning optional&lt;T&gt; can change to return Result&lt;T&gt; with minimal changes to existing code, and vice versa&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
has&lowbar;value() const noexcept;
----

== Return Value

true if the result holds a value, false if it holds an error


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