In computer programming, RTTI (Run-Time Type Information, or Run-Time Type Identification) refers to a C++ mechanism that exposes information about an object's data type at runtime. Run-time type information can apply to simple data types, such as integers and characters, or to generic types. This is a C++ specialization of a more general concept called type introspection. Similar mechanisms are also known in other programming languages, such as Delphi (Object Pascal).
In the original C++ design, Bjarne Stroustrup did not include run-time type information, because he thought this mechanism was frequently misused.
The dynamic_cast<>
operation and typeid
operator in C++ are part of RTTI.
The C++ run-time type information permits performing safe typecasts and manipulating type information at run time.
RTTI is available only for classes which are polymorphic, which means they have at least one virtual method. In practice, this is not a limitation because base classes must have a virtual destructor to allow objects of derived classes to perform proper cleanup if they are deleted from a base pointer.
You know you're livin' a lie when you just can't win
Pulling in first prize ain't gonna give you a break
You know I'm kickin' back, I had a broken wing
Me and my shadow are the next best thing
I need someone
You know it might take more than you give to me
Are you gun-shy, are you listening?
What we got here is dead reckoning
And take me in for the night in the right time zone
We'll do what you like, make a left turn home
I put out the light, you're turnin' way too red
No stop sign straight up ahead
You need so much
So much sympathy
That's more than I can say
You know it's not too late
Are you gun-shy, are you listening?
What we got here is dead reckoning
And if it feels good, we'll do it again
See your way clear, dead reckoning
Tell me why, tell me why
Are you listening?
Are you listening?
Are you listening?
Are you listening?
You mean so much
So much to me
That's more than I can say
You know it's not too late
Are you gun-shy, are you listening?
What we got here is dead reckoning
And if it feels good, we'll do it again
See your way clear, dead reckoning, yeah
What we got here is dead reckoning