Saturday, October 2, 2010

The typeid() Function

The Standard C++ Library function typeid() maps a class name to a string. The mapping is not standardized. Typically, the output is the class name as a string; but it could be "" and still be compliant.

Reference: Modern C++ Design by Andrei Alexandrescu. Addison-Wesley, 2001, p. 39.

No comments:

Post a Comment