API:System.Contnrs.TObjectStack.Pop

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Pop: TObject; inline;

C++

HIDESBASE System::TObject* __fastcall Pop();

Properties

Type Visibility Source Unit Parent
function public
System.Contnrs.pas
System.Contnrs.hpp
System.Contnrs TObjectStack

Description

Removes and returns the next item in the list.

System.Contnrs.TObjectStack.Pop inherits from System.Contnrs.TOrderedList.Pop. All content below this line refers to System.Contnrs.TOrderedList.Pop.

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.

See Also