(Click here for a personal note from Marshall Cline.)
/ FAQ 11.13
What's the deal with destructors?
What's the order that local objects are destructed?
What's the order that objects in an array are destructed?
Can I overload the destructor for my class?
Should I explicitly call a destructor on a local variable?
Can I call a destructor on a local if I
How do I handle the situation from the previous FAQ?
What if I can't wrap the local in an artificial block?
Explicitly calling dtor for objects allocated with
What is "placement
" and why would I use it?
Should a dtor call the dtors for member objects?
Should a dtor call the dtors for the base class subobject?
Should my destructor throw an exception when it detects a problem?
to allocate memory from a specific memory area?
E-mail the author
About the author
Revised Jul 4, 2012
[11.13] Should my destructor throw an exception when it detects a problem?