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

This cast trait just provides the default implementation of doCastIfPossible to make CastInfo specializations more declarative. More...

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

Static Public Member Functions

static To doCastIfPossible (From f)
 

Detailed Description

template<typename To, typename From, typename Derived>
struct wpi::DefaultDoCastIfPossible< To, From, Derived >

This cast trait just provides the default implementation of doCastIfPossible to make CastInfo specializations more declarative.

The Derived template parameter must be provided for forwarding castFailed and doCast.

Member Function Documentation

◆ doCastIfPossible()

template<typename To , typename From , typename Derived >
static To wpi::DefaultDoCastIfPossible< To, From, Derived >::doCastIfPossible ( From  f)
inlinestatic

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