LLVM 20.0.0git
|
This cast trait provides std::optional<T> casting. More...
#include "llvm/Support/Casting.h"
Static Public Member Functions | |
static std::optional< To > | castFailed () |
static std::optional< To > | doCast (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::DefaultDoCastIfPossible< To, From, Derived > | |
static To | doCastIfPossible (From f) |
This cast trait provides std::optional<T> casting.
This means that if you have a value type, you can cast it to another value type and have dyn_cast return an std::optional<T>.
|
inlinestatic |
|
inlinestatic |