|
LLVM 22.0.0git
|
Provide a CastInfo specialized for std::optional<From>. More...
#include "llvm/Support/Casting.h"
Public Types | |
| using | Self |
| using | CastReturnType |
Static Public Member Functions | |
| static CastReturnType | doCast (const From &f) |
| static CastReturnType | castFailed () |
| static CastReturnType | doCastIfPossible (const From &f) |
| Static Public Member Functions inherited from llvm::CastIsPossible< To, From, Enable > | |
| static bool | isPossible (const From &f) |
| Static Public Member Functions inherited from llvm::OptionalValueCast< To, From, Derived > | |
| static std::optional< To > | castFailed () |
| static std::optional< To > | doCast (const From &f) |
| Static Public Member Functions inherited from llvm::DefaultDoCastIfPossible< std::optional< To >, From, detail::SelfType< void, OptionalValueCast< To, From > > > | |
| static To | doCastIfPossible (From f) |
Provide a CastInfo specialized for std::optional<From>.
It's assumed that if the input is std::optional<From> that the output can be std::optional<To>. If that's not the case, specialize CastInfo for your use case.
| using llvm::CastInfo< To, From, void >::CastReturnType |
| using llvm::CastInfo< To, From, void >::Self |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |