|  | Home | Libraries | People | FAQ | More | 
boost::typeindex::runtime_cast — Safely converts pointers to classes up, down, and sideways along the inheritance hierarchy.
// In header: <boost/type_index/runtime_cast/pointer_cast.hpp> template<typename T, typename U> T runtime_cast(U * u);
| Template Parameters: | 
 | ||||
| Returns: | If there exists a valid conversion from U* to T, returns a T that points to an address suitably offset from u. If no such conversion exists, returns NULL. |