Call this method to reallocate the memory on the heap.
) throw( );
The new number of elements used to calculate the amount of memory to allocate.
Returns true if the memory was successfully allocated, false on failure.
// Create a new CHeapPtr object
CHeapPtr <int> myHP;
// Allocate space for 10 integers on the heap
// Resize the allocated memory for 20 integers
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback