C++ Language/Type/Rtti
Appearance
< C++ Language | Type
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()
).