| Start |
|---|
| Name of a type You can retrieve the implementation defined name of a type in runtime by using the Output (implementation-defined): |
| dynamic_cast Use If you must do some non-polymorphic work on some derived classes |
| The typeid keyword The
If |
| When to use which cast in c++ Use dynamic_cast for converting pointers/references within an inheritance hierarchy. Use static_cast for ordinary type conversions. Use reinterpret_cast for low-level reinterpreting of bit patterns. Use with extreme caution. Use const_cast for casting away const/volatile. Avoid this unless you are stuck using a const-incorrect API. |
Read Article
https://develop.horje.com/learn/1434/reference