Rcpp Version 1.0.9
Rcpp::traits::is_convertible< T, U > Class Template Reference

#include <is_convertible.h>

Classes

struct  Big
 

Public Types

typedef bool value_type
 
typedef integral_constant< bool, valuetype
 

Static Public Attributes

static const bool value = sizeof(Test(MakeT())) == sizeof(Small)
 

Private Types

typedef char Small
 

Static Private Member Functions

static Small Test (const U &)
 
static Big Test (...)
 
static T MakeT ()
 

Detailed Description

template<typename T, typename U>
class Rcpp::traits::is_convertible< T, U >

Definition at line 29 of file is_convertible.h.

Member Typedef Documentation

◆ Small

template<typename T , typename U >
typedef char Rcpp::traits::is_convertible< T, U >::Small
private

Definition at line 31 of file is_convertible.h.

◆ type

template<typename T , typename U >
typedef integral_constant<bool,value> Rcpp::traits::is_convertible< T, U >::type

Definition at line 41 of file is_convertible.h.

◆ value_type

template<typename T , typename U >
typedef bool Rcpp::traits::is_convertible< T, U >::value_type

Definition at line 39 of file is_convertible.h.

Member Function Documentation

◆ MakeT()

template<typename T , typename U >
static T Rcpp::traits::is_convertible< T, U >::MakeT ( )
staticprivate

◆ Test() [1/2]

template<typename T , typename U >
static Big Rcpp::traits::is_convertible< T, U >::Test (   ...)
staticprivate

◆ Test() [2/2]

template<typename T , typename U >
static Small Rcpp::traits::is_convertible< T, U >::Test ( const U &  )
staticprivate

Member Data Documentation

◆ value

template<typename T , typename U >
const bool Rcpp::traits::is_convertible< T, U >::value = sizeof(Test(MakeT())) == sizeof(Small)
static

Definition at line 40 of file is_convertible.h.


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