success overloads
Declared in <llvm/Support/LogicalResult.h>
Utility function to generate a LogicalResult. If isSuccess is true a success result is generated, otherwise a 'failure' result is generated.
LogicalResult
success(bool IsSuccess = true);
» more...
Wrap a value on the success path in a FailureOr of the same value type.
template<typename T>
requires !std::is_convertible_v<T, bool>
auto
success(T&& Y);
» more...
IsSuccess is true; otherwise failure.Y on the success path.| Name | Description |
|---|---|
| IsSuccess | When true, produce success; otherwise failure. |
| Y | Value to store in the returned FailureOr. |