System.Generics.Collections.TStack.Destroy

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

destructor Destroy; override;

C++

__fastcall virtual ~TStack__1();

Properties

Type Visibility Source Unit Parent
destructor public
System.Generics.Collections.pas
System.Generics.Collections.hpp
System.Generics.Collections TStack

Description

Destroy stack instance.

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.

See Also