Delete
If p points to an object created via use of the new
operator, then the statement
delete p;
deallocates the object to which p was pointing. If
the type has a destructor, the destructor is invoked
prior to de-allocation.
Previous slide
Next slide
Back to first slide
View graphic version