WPILibC++ 2024.1.1-beta-4
wpi::ValueFromPointerCast< To, From, Derived > Struct Template Reference

This cast trait provides casting for the specific case of casting to a value-typed object from a pointer-typed object. More...

#include </home/runner/work/allwpilib/allwpilib/wpiutil/src/main/native/thirdparty/llvm/include/wpi/Casting.h>

Inheritance diagram for wpi::ValueFromPointerCast< To, From, Derived >:
wpi::CastIsPossible< To, From * > wpi::NullableValueCastFailed< To > wpi::DefaultDoCastIfPossible< To, From *, detail::SelfType< void, ValueFromPointerCast< To, From > > >

Static Public Member Functions

static To doCast (From *f)
 
- Static Public Member Functions inherited from wpi::CastIsPossible< To, From * >
static bool isPossible (const From * &f)
 
- Static Public Member Functions inherited from wpi::NullableValueCastFailed< To >
static To castFailed ()
 
- Static Public Member Functions inherited from wpi::DefaultDoCastIfPossible< To, From *, detail::SelfType< void, ValueFromPointerCast< To, From > > >
static To doCastIfPossible (From * f)
 

Detailed Description

template<typename To, typename From, typename Derived = void>
struct wpi::ValueFromPointerCast< To, From, Derived >

This cast trait provides casting for the specific case of casting to a value-typed object from a pointer-typed object.

Note that To must be nullable/constructible from a pointer to From to use this cast.

Member Function Documentation

◆ doCast()

template<typename To , typename From , typename Derived = void>
static To wpi::ValueFromPointerCast< To, From, Derived >::doCast ( From *  f)
inlinestatic

The documentation for this struct was generated from the following file: