WPILibC++ 2025.3.2
Loading...
Searching...
No Matches
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 <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: