LLVM 20.0.0git
|
This class provides support for representing a failure result, or a valid value of type T
.
More...
#include "llvm/Support/LogicalResult.h"
Public Member Functions | |
FailureOr (LogicalResult Result) | |
Allow constructing from a LogicalResult. | |
FailureOr () | |
FailureOr (T &&Y) | |
FailureOr (const T &Y) | |
template<typename U , std::enable_if_t< std::is_constructible< T, U >::value > * = nullptr> | |
FailureOr (const FailureOr< U > &Other) | |
operator LogicalResult () const | |
This class provides support for representing a failure result, or a valid value of type T
.
This allows for integrating with LogicalResult, while also providing a value on the success path.
Definition at line 76 of file LogicalResult.h.
|
inline |
Allow constructing from a LogicalResult.
The result must be a failure. Success results should use a proper instance of type T
.
Definition at line 80 of file LogicalResult.h.
References assert(), and llvm::failed().
|
inline |
Definition at line 84 of file LogicalResult.h.
References llvm::failure().
|
inline |
Definition at line 85 of file LogicalResult.h.
|
inline |
Definition at line 86 of file LogicalResult.h.
|
inline |
Definition at line 89 of file LogicalResult.h.
References llvm::failed().
|
inline |
Definition at line 93 of file LogicalResult.h.
References llvm::success().