devxlogo

Tip Bank

Virtual function tables

Question: I would like to know what virtual function tables are. When one refers to vtables, is it a virtual function table that is implied? Answer: In short, vtables are

Virtual function is abstract

Question: We are getting an error message that says a function fromwithin a class C cannot allocate instanceof type C because one of the virtual functions(the one we wrote) is

C++ Program Performance Monitor

Question: Do you know of a good tool for getting performance data on a pure C++ program?I need a tool that indicates sections of code thatuse the most CPU/memory, etc.

Memory re-allocation

Question: Is there a standard method/operator in C++ analogous to standard C’s realloc() function that enables resizing of dynamic memory allocated by new operator? Answer: There is no standard call

Constructor with static members in library

Question: Background: Digital UNIX 3.2g, Alpha platform, latest GNU.From the FAQ, I know that you are supposed to declare static member variables externally from the declaration and inonly one place.