Top "Rtti" questions

RTTI stands for Run-Time Type Information, it is also known as reflection; it allows access to compile-time data at run-time.

is vs typeof

Which of these pieces of code is faster? if (obj is ClassA) {} if (obj.GetType() == typeof(ClassA)) {} Edit: I'm aware …

c# rtti
How expensive is RTTI?

I understand that there is a resource hit from using RTTI, but how big is it? Everywhere I've looked just …

c++ performance rtti
Java isInstance vs instanceOf operator

The whole generics thing is kinda throwing me for a loop, and more so the RTT. Specificis? Ah well here's …

java inheritance rtti typing
Why does typeid.name() return weird characters using GCC and how to make it print unmangled names?

How come when I run this main.cpp: #include <iostream> #include <typeinfo> using namespace std; struct …

c++ gcc g++ rtti
How to typeof in C++

How to simulate C# typeof-command behavior in C++? C# example: public static PluginNodeList GetPlugins (Type type) { ... } Call: PluginManager.GetPlugins (typeof(…

c++ rtti typeof typeid
activate RTTI in c++

Can anybody tell me how to activate RTTI in c++ when working on unix. I heard that it can be …

c++ rtti hp-ux acc
dynamic_cast from "void *"

According to this, void* has no RTTI information, therefore casting from void* is not legal and it make sense. If …

c++ rtti void-pointers dynamic-cast
When can compiling c++ without RTTI cause problems?

I'm using gcc's -fno-rtti flag to compile my C++ without runtime type information. Assuming I'm not using dynamic_cast<&…

c++ gcc rtti
Extract C++ template parameters

Although I'm doubtful, I'm curious as to whether it's possible to extract primitive-type template parameters from an existing type, perhaps …

c++ templates rtti
dynamic_cast with RTTI disabled

I'm curious to know what happens when compiling code with a dynamic cast whith RTTI disabled (either with -fno-rttion GCC …

c++ rtti dynamic-cast