Rcpp Version 0.12.12
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

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

Definition at line 31 of file is_convertible.h.

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.

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

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

Member Data Documentation

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: