WPILibC++ 2024.3.2
|
This cast trait provides std::optional<T> casting. More...
#include </home/runner/work/allwpilib/allwpilib/wpiutil/src/main/native/thirdparty/llvm/include/wpi/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 wpi::CastIsPossible< To, From, Enable > | |
static bool | isPossible (const From &f) |
Static Public Member Functions inherited from wpi::DefaultDoCastIfPossible< std::optional< To >, From, detail::SelfType< void, OptionalValueCast< To, From > > > | |
static std::optional< 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 |