WPILibC++ 2024.1.1-beta-4
wpi::CastIsPossible< To, From, std::enable_if_t< std::is_base_of_v< To, From > > > Struct Template Reference

Upcasting (from derived to base) and casting from a type to itself should always be possible. More...

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

Static Public Member Functions

static bool isPossible (const From &f)
 

Detailed Description

template<typename To, typename From>
struct wpi::CastIsPossible< To, From, std::enable_if_t< std::is_base_of_v< To, From > > >

Upcasting (from derived to base) and casting from a type to itself should always be possible.

Member Function Documentation

◆ isPossible()

template<typename To , typename From >
static bool wpi::CastIsPossible< To, From, std::enable_if_t< std::is_base_of_v< To, From > > >::isPossible ( const From &  f)
inlinestatic

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