GCC Middle and Back End API Reference
is-a.h File Reference

Go to the source code of this file.

Data Structures

struct  is_a_helper< T >

Functions

template<typename T , typename U >
bool is_a ()
template<typename T , typename U >
Tas_a ()
template<typename T , typename U >
Tdyn_cast ()

Function Documentation

template<typename T , typename U >
T* as_a ( )
inline
A generic conversion from a base type U to a derived type T.  See the
   discussion above for when to use this function.   
template<typename T , typename U >
bool is_a ( )
inline
The public interface.   
A generic test for a type relationship.  See the discussion above for when
   to use this function.  The question answered is "Is type T a derived type of
   type U?".   

References is_a_helper< T >::test().