![]() |
WPILibC++ 2025.3.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 bool | isPossible (const From &f) |
![]() | |
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 |