Simple++
Powerfull and lightning fast C++ Library
Public Types | Static Public Member Functions | List of all members
Utility::isBase< Base, PotentialDerived > Class Template Reference

#include <Utility.h>

Public Types

enum  : bool { value = sizeof( check( static_cast< PotentialDerived* >( 0 ) ) ) == sizeof( yes ) }
 
typedef char(& no)[1]
 
typedef char(& yes)[2]
 

Static Public Member Functions

static yes check (Base *)
 
static no check (...)
 

Member Typedef Documentation

template<typename Base , typename PotentialDerived >
typedef char( & Utility::isBase< Base, PotentialDerived >::no)[1]
template<typename Base , typename PotentialDerived >
typedef char( & Utility::isBase< Base, PotentialDerived >::yes)[2]

Member Enumeration Documentation

template<typename Base , typename PotentialDerived >
anonymous enum : bool
Enumerator
value 

Member Function Documentation

template<typename Base , typename PotentialDerived >
static yes Utility::isBase< Base, PotentialDerived >::check ( Base *  )
static
template<typename Base , typename PotentialDerived >
static no Utility::isBase< Base, PotentialDerived >::check (   ...)
static

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