[#util-Result-has_value] = xref:util.adoc[util]::xref:util/Result.adoc[Result]::has_value :relfileprefix: ../../ :mrdocs: std::optional methods, so functions returning optional<T> can change to return Result<T> with minimal changes to existing code, and vice versa. == Synopsis Declared in `<util/result.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool has_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]#