WPILibC++ 2024.3.2
|
ValueIsPresent provides a way to check if a value is, well, present. More...
#include </home/runner/work/allwpilib/allwpilib/wpiutil/src/main/native/thirdparty/llvm/include/wpi/Casting.h>
Public Types | |
using | UnwrappedType = T |
Static Public Member Functions | |
static bool | isPresent (const T &t) |
static decltype(auto) | unwrapValue (T &t) |
ValueIsPresent provides a way to check if a value is, well, present.
For pointers, this is the equivalent of checking against nullptr, for Optionals this is the equivalent of checking hasValue(). It also provides a method for unwrapping a value (think calling .value() on an optional).
using wpi::ValueIsPresent< T, Enable >::UnwrappedType = T |
|
inlinestatic |
|
inlinestatic |