[#util-Result-2conversion] = xref:util.adoc[util]::xref:util/Result.adoc[Result]::operator bool :relfileprefix: ../../ :mrdocs: Tests whether the result holds a value. == Synopsis Declared in `<util/result.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit operator bool() 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]#