System.Generics.Collections.TObjectStack.Pop
Delphi
procedure Pop;
C++
HIDESBASE void __fastcall Pop(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Generics.Collections.pas System.Generics.Collections.hpp |
System.Generics.Collections | TObjectStack |
Description
Pop stack item.
This method removes one item from the top of the stack without returning it. Count is decremented by 1. If Count is already 0, an error is raised.
Note: TObjectStack.Pop differs from TStack.Pop in that it is a procedure and does not return the popped element. Otherwise, both methods function similarly. Use TStack.Peek to work with the head of the stack and TStack.Pop when finished with the head, or alternatively use TStack.Extract to take ownership.
See Also
Code Examples