CUTLASS
CUDA Templates for Linear Algebra Subroutines and Solvers
Classes | Public Types | Static Public Member Functions | Static Public Attributes | List of all members
cutlass::platform::is_base_of_helper< BaseT, DerivedT > Struct Template Reference

Helper for std::is_base_of.

#include <platform.h>

Classes

struct  dummy
 

Public Types

typedef char(& yes)[1]
 
typedef char(& no)[2]
 

Static Public Member Functions

template<typename T >
static CUTLASS_HOST_DEVICE yes check (DerivedT *, T)
 
static CUTLASS_HOST_DEVICE no check (BaseT *, int)
 

Static Public Attributes

static const bool value = sizeof(check(dummy<BaseT, DerivedT>(), int())) == sizeof(yes)
 

Member Typedef Documentation

template<typename BaseT , typename DerivedT >
typedef char(& cutlass::platform::is_base_of_helper< BaseT, DerivedT >::no)[2]
template<typename BaseT , typename DerivedT >
typedef char(& cutlass::platform::is_base_of_helper< BaseT, DerivedT >::yes)[1]

Member Function Documentation

template<typename BaseT , typename DerivedT >
template<typename T >
static CUTLASS_HOST_DEVICE yes cutlass::platform::is_base_of_helper< BaseT, DerivedT >::check ( DerivedT *  ,
 
)
static
template<typename BaseT , typename DerivedT >
static CUTLASS_HOST_DEVICE no cutlass::platform::is_base_of_helper< BaseT, DerivedT >::check ( BaseT *  ,
int   
)
static

Member Data Documentation

template<typename BaseT , typename DerivedT >
const bool cutlass::platform::is_base_of_helper< BaseT, DerivedT >::value = sizeof(check(dummy<BaseT, DerivedT>(), int())) == sizeof(yes)
static

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