Tip Bank

DevX - Software Development Resource

Destructor-explicit invocation

Question: If the destructor is called from a new’ed object (a->A::~A()), is the object’s instance deleted? Answer: No. A destructor is a special member function of a class that is

DevX - Software Development Resource

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

DevX - Software Development Resource

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

DevX - Software Development Resource

Inherited operator = not being seen

Question: I have a templated class A that defines two operator =, and a templated class B : public class A which should inherit the two virtual a::operator = I

DevX - Software Development Resource

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.

DevX - Software Development Resource

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