C++ Language/Type/Rtti

The C++ standard provides rather little support for RTTI. You can call typeid(int), which returns a constĀ std::type_info& that can be equated (using ==) or converted into string (using .name()).

Additional information about RTTI