|
| MSVCPExpected () |
|
| MSVCPExpected (MSVCPExpected &&Other) |
|
MSVCPExpected & | operator= (MSVCPExpected &&Other) |
|
| MSVCPExpected (Error Err) |
|
template<typename OtherT > |
| MSVCPExpected (OtherT &&Val, typename std::enable_if< std::is_convertible< OtherT, T >::value >::type *=nullptr) |
|
template<class OtherT > |
| MSVCPExpected (Expected< OtherT > &&Other, typename std::enable_if< std::is_convertible< OtherT, T >::value >::type *=nullptr) |
|
template<class OtherT > |
| MSVCPExpected (Expected< OtherT > &&Other, typename std::enable_if<!std::is_convertible< OtherT, T >::value >::type *=nullptr) |
|
| Expected (Error Err) |
| Create an Expected<T> error value from the given Error. More...
|
|
| Expected (ErrorSuccess)=delete |
| Forbid to convert from Error::success() implicitly, this avoids having Expected<T> foo() { return Error::success(); } which compiles otherwise but triggers the assertion above. More...
|
|
template<typename OtherT > |
| Expected (OtherT &&Val, typename std::enable_if< std::is_convertible< OtherT, T >::value >::type *=nullptr) |
| Create an Expected<T> success value from the given OtherT value, which must be convertible to T. More...
|
|
| Expected (Expected &&Other) |
| Move construct an Expected<T> value. More...
|
|
template<class OtherT > |
| Expected (Expected< OtherT > &&Other, typename std::enable_if< std::is_convertible< OtherT, T >::value >::type *=nullptr) |
| Move construct an Expected<T> value from an Expected<OtherT>, where OtherT must be convertible to T. More...
|
|
template<class OtherT > |
| Expected (Expected< OtherT > &&Other, typename std::enable_if<!std::is_convertible< OtherT, T >::value >::type *=nullptr) |
| Move construct an Expected<T> value from an Expected<OtherT>, where OtherT isn't convertible to T. More...
|
|
Expected & | operator= (Expected &&Other) |
| Move-assign from another Expected<T>. More...
|
|
| ~Expected () |
| Destroy an Expected<T>. More...
|
|
| operator bool () |
| Return false if there is an error. More...
|
|
reference | get () |
| Returns a reference to the stored T value. More...
|
|
const_reference | get () const |
| Returns a const reference to the stored T value. More...
|
|
template<typename ErrT > |
bool | errorIsA () const |
| Check that this Expected<T> is an error of type ErrT. More...
|
|
Error | takeError () |
| Take ownership of the stored error. More...
|
|
pointer | operator-> () |
| Returns a pointer to the stored T value. More...
|
|
const_pointer | operator-> () const |
| Returns a const pointer to the stored T value. More...
|
|
reference | operator* () |
| Returns a reference to the stored T value. More...
|
|
const_reference | operator* () const |
| Returns a const reference to the stored T value. More...
|
|
template<typename T>
class llvm::MSVCPExpected< T >
Definition at line 44 of file MSVCErrorWorkarounds.h.