Chombo + EB  3.0
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>


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

◆ One

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

Member Enumeration Documentation

◆ anonymous enum

template<typename T >
anonymous enum

Member Function Documentation

◆ test() [1/2]

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

◆ test() [2/2]

template<typename T >
template<typename C >
static Two ArSp::TypeTr< T >::test (   ...)

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