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>

bool
has_value() const noexcept;

Return Value

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

Created with MrDocs