2 out of 4 rated this helpful - Rate this topic

How delete Works

The delete operator invokes the function operator delete. For objects of class types (class, struct, and union), the delete operator invokes the destructor for an object prior to deallocating memory (if the pointer is not null). For objects not of class type, the global delete operator is invoked. For objects of class type, the delete operator can be defined on a per-class basis; if there is no such definition for a given class, the global operator is invoked.

See Also

Expressions with Unary Operators

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.