Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Static Public Member Functions | List of all members
isclass< T > Struct Template Reference

Check if a given type is a class. More...

#include <cube_tools.hpp>

Public Types

enum  { yes = sizeof(test<T>(nullptr)) == 1 ? 1 : 0, no = yes^1 }
 

Static Public Member Functions

template<class C >
static char test (void(C::*)(void))
 
template<class C >
static int test (...)
 

Detailed Description

template<class T>
struct isclass< T >

Check if a given type is a class.

Member Enumeration Documentation

template<class T >
anonymous enum
Enumerator
yes 
no 

Member Function Documentation

template<class T >
template<class C >
static char isclass< T >::test ( void(C::*)(void )
static
template<class T >
template<class C >
static int isclass< T >::test (   ...)
static

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