WPILibC++ 2025.1.1
|
This cast trait provides std::optional<T> casting. More...
#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 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 |