71 static Result fail (
const String& errorMessage) noexcept;
75 bool wasOk() const noexcept;
81 bool failed() const noexcept;
86 operator
bool() const noexcept;
91 bool operator!() const noexcept;
96 const
String& getErrorMessage() const noexcept;
104 bool operator== (const
Result& other) const noexcept;
105 bool operator!= (const
Result& other) const noexcept;
116 operator
int() const;
117 operator
void*() const;