Test for class type.
More...
#include <CHArray.H>
|
enum | { IsClass = sizeof(TypeTr<T>::template test<T>(0)) == 1
} |
|
|
template<typename C > |
static One | test (int C::*) |
|
template<typename C > |
static Two | test (...) |
|
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
◆ One
◆ anonymous enum
◆ test() [1/2]
template<typename T >
template<typename C >
◆ test() [2/2]
template<typename T >
template<typename C >
The documentation for this class was generated from the following file: