RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStack.Destroy Destructor

Destroy stack instance.

Pascal
destructor Destroy; override;
C++
virtual __fastcall ~TStack();

This method clears a stack using Clear and destroys it.

Note: Clear does not free the items as they are popped. If you need to free them, use the OnNotify event, which occurs for every pop and provides the popped item.
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!