5 #include <hilti/ast/operators/common.h> 6 #include <hilti/ast/types/result.h> 10 STANDARD_OPERATOR_1(result, Deref, operator_::dereferencedType(0), type::constant(type::Result(type::Wildcard())),
11 "Retrieves value stored inside the result instance. Will throw a ``NoResult`` exception if the " 12 "result is in an error state.");
14 BEGIN_METHOD(result, Error)
15 const auto& signature()
const {
16 static auto _signature =
17 Signature{.self = type::Result(type::Wildcard()),
18 .result = type::Error(),
22 "Retrieves the error stored inside the result instance. Will throw a ``NoError`` " 23 "exception if the result is not in an error state."};
Definition: operator-registry.h:15