![]() |
WPILibC++ 2025.0.0-alpha-1-14-g3b6f38d
|
Provide a CastInfo specialized for std::optional<From>. More...
#include </home/runner/work/allwpilib/allwpilib/wpiutil/src/main/native/thirdparty/llvm/include/wpi/Casting.h>
Additional Inherited Members | |
![]() | |
static std::optional< To > | castFailed () |
static std::optional< To > | doCast (const From &f) |
![]() | |
static bool | isPossible (const From &f) |
![]() | |
static std::optional< 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.