System.Generics.Collections.TStack

Delphi
TStack<T> = class(TEnumerable<T>)
C++
template<typename T> class PASCALIMPLEMENTATION TStack__1 : public TEnumerable__1<T>
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | System.Generics.Collections.pas System.Generics.Collections.hpp |
System.Generics.Collections | System.Generics.Collections |
Description
Last in, first out stack.
TStack represents a last in, first out stack of the same type. It is of arbitrary size, expanding as needed. You can push nil on the stack.
When the stack changes, an OnNotify event is generated.
Count contains the number of stack entries.
The class TObjectStack inherits from TStack and provides an automatic mechanism for freeing objects removed from stacks.
See Also
Code Examples