ArSp::TypeTr< T > Class Template Reference

#include <CHArray.H>

List of all members.


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

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 (...)

Classes

struct  Two


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::*   )  [inline, static, private]

template<typename T>
template<typename C>
static Two ArSp::TypeTr< T >::test (   ...  )  [inline, static, private]


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

Generated on Mon Oct 23 04:04:46 2017 for Chombo + EB by  doxygen 1.5.5