(about)

Solutions Log

October 31st 2009

Return value of typeinfo::typeid

Usage

Return Value

The return value is defined by the compiler. For example, gcc returns i for an int, while a Microsoft compiler may return int

Unix

Objects may have a number prefixed to their name, such as 13MyClass

People suspect that this is related to the size of the object.

Summary

While the type name is unique to the class, the number may change if the class is updated with new members or functions.