WPILibC++ 2024.1.1-beta-4
wpi::CastInfo< To, From, std::enable_if_t<!is_simple_type< From >::value > > Struct Template Reference

This struct provides an overload for CastInfo where From has simplify_type defined. More...

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

Public Types

using Self = CastInfo< To, From >
 
using SimpleFrom = typename simplify_type< From >::SimpleType
 
using SimplifiedSelf = CastInfo< To, SimpleFrom >
 

Static Public Member Functions

static bool isPossible (From &f)
 
static decltype(auto) doCast (From &f)
 
static decltype(auto) castFailed ()
 
static decltype(auto) doCastIfPossible (From &f)
 

Detailed Description

template<typename To, typename From>
struct wpi::CastInfo< To, From, std::enable_if_t<!is_simple_type< From >::value > >

This struct provides an overload for CastInfo where From has simplify_type defined.

This simply forwards to the appropriate CastInfo with the simplified type/value, so you don't have to implement both.

Member Typedef Documentation

◆ Self

template<typename To , typename From >
using wpi::CastInfo< To, From, std::enable_if_t<!is_simple_type< From >::value > >::Self = CastInfo<To, From>

◆ SimpleFrom

template<typename To , typename From >
using wpi::CastInfo< To, From, std::enable_if_t<!is_simple_type< From >::value > >::SimpleFrom = typename simplify_type<From>::SimpleType

◆ SimplifiedSelf

template<typename To , typename From >
using wpi::CastInfo< To, From, std::enable_if_t<!is_simple_type< From >::value > >::SimplifiedSelf = CastInfo<To, SimpleFrom>

Member Function Documentation

◆ castFailed()

template<typename To , typename From >
static decltype(auto) wpi::CastInfo< To, From, std::enable_if_t<!is_simple_type< From >::value > >::castFailed ( )
inlinestatic

◆ doCast()

template<typename To , typename From >
static decltype(auto) wpi::CastInfo< To, From, std::enable_if_t<!is_simple_type< From >::value > >::doCast ( From &  f)
inlinestatic

◆ doCastIfPossible()

template<typename To , typename From >
static decltype(auto) wpi::CastInfo< To, From, std::enable_if_t<!is_simple_type< From >::value > >::doCastIfPossible ( From &  f)
inlinestatic

◆ isPossible()

template<typename To , typename From >
static bool wpi::CastInfo< To, From, std::enable_if_t<!is_simple_type< From >::value > >::isPossible ( From &  f)
inlinestatic

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