Class FunctionCallResult
Defined in File util.hpp
Class Documentation
-
class FunctionCallResult
Used as a return.
Public Functions
-
inline explicit FunctionCallResult(bool success)
-
inline FunctionCallResult(bool success, const std::string &failure)
-
FunctionCallResult(FunctionCallResult&&) = default
-
FunctionCallResult &operator=(FunctionCallResult&&) = default
-
inline operator bool() const
-
inline bool success() const
-
inline const std::string &failureMessage() const
The failure message, if the call this represents failed.
On success, this will always be a valid empty string (i.e.,
result.failureMessage()
.empty() is always true).
-
inline explicit FunctionCallResult(bool success)