System.Contnrs.TOrderedList.Pop
Delphi
function Pop: Pointer; inline;
C++
void * __fastcall Pop();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Contnrs.pas System.Contnrs.hpp |
System.Contnrs | TOrderedList |
Description
Removes and returns the next item in the list.
Call Pop to retrieve an item from the list. Pop removes the next item from the list, then returns a pointer to the deleted item.
Each TOrderedList descendant implements Pop to remove and return a specific item from the list. For example, TQueue returns the item that was added first, while TStack returns the item that was added last.
To access the list without removing an item, call Peek.