Chombo + EB  3.2
Classes | Public Types | Private Types | Static Private Member Functions | List of all members
ArSp::TypeTr< T > Class Template Reference

Test for class type. More...

#include <CHArray.H>

Classes

struct  Two
 

Public Types

enum  { IsClass = sizeof(TypeTr<T>::template test<T>(0)) == 1 }
 

Private Types

typedef char One
 

Static Private Member Functions

template<typename C >
static One test (int C::*)
 
template<typename C >
static Two test (...)
 

Detailed Description

template<typename T>
class ArSp::TypeTr< T >

Test for class type.

Use the SFINAE principle as described in 15.2.2 "Determining Class Types" in Vandevoorde and Josuttis "C++ Templates" book to see if T is class type. E.g., TypeTr<int>::IsClass == false TypeTr<Box>::IsClass == true

Member Typedef Documentation

template<typename T >
typedef char ArSp::TypeTr< T >::One
private

Member Enumeration Documentation

template<typename T >
anonymous enum
Enumerator
IsClass 

Member Function Documentation

template<typename T >
template<typename C >
static One ArSp::TypeTr< T >::test ( int C::*  )
staticprivate
template<typename T >
template<typename C >
static Two ArSp::TypeTr< T >::test (   ...)
staticprivate

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