dynamic_cast « Pointer « C++ Tutorial






11.6.dynamic_cast
11.6.1.Dynamic cast
11.6.2.Use dynamic_cast to replace typeid
11.6.3.dynamic_cast: Cast from Base * to Derived * (wrong)
11.6.4.dynamic_cast: Cast from Base * to Base *
11.6.5.dynamic_cast: Cast from Derived * to Derived *
11.6.6.dynamic_cast: Cast from Derived * to Base *