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