How is destroying local variables when a block is exited normally called in C++?
- by sharptooth
C++ automagically calls destructors of all local variables in the block in reverse order regardless of whether the block is exited normally (control falls through) or an exception is thrown.
Looks like the term stack unwinding only applies to the latter. How is the former process (the normal exit of the block) called in terms of destroying local variables?