MADNESS  version 0.9
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
madness::is_derived_from< A, B > Struct Template Reference

True if A is derived from B and is not B. More...

#include <typestuff.h>

Public Types

typedef char yes
 
typedef int no
 

Static Public Member Functions

static no f (...)
 
static yes f (B *)
 

Static Public Attributes

static const bool value = (sizeof(f((A*)0)) == sizeof(yes))
 

Detailed Description

template<class A, class B>
struct madness::is_derived_from< A, B >

True if A is derived from B and is not B.

Member Typedef Documentation

template<class A , class B >
typedef int madness::is_derived_from< A, B >::no
template<class A , class B >
typedef char madness::is_derived_from< A, B >::yes

Member Function Documentation

template<class A , class B >
static no madness::is_derived_from< A, B >::f (   ...)
static
template<class A , class B >
static yes madness::is_derived_from< A, B >::f ( B )
static

Member Data Documentation

template<class A , class B >
const bool madness::is_derived_from< A, B >::value = (sizeof(f((A*)0)) == sizeof(yes))
static

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