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