class BaseAndDerived

Class to determine if two types are base and derived. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Members


Detailed Description

This class tests whether a pointer for type B is useable as pointer to type D. Typically, this implies that B is a base for D. It may also imply that B is void, or B and D are the same type.

How this works? Overloaded definition of function X::f(). The first of which takes a const B* pointer as an argument and returns are char. The second of which takes a ... and returns a double. sizeof is used to determine the size of the return type that would used if the code were executed. Thus, if B and D are compatible pointer types then sizeof(X::f()) for both of them is sizeof(char).

static const bool True

True


Generated by: bms on anglepoise.lon.incunabulum.net on Wed Jul 23 10:05:24 2008, using kdoc 2.0a54+XORP.