System.Contnrs.TObjectStack.Peek

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Peek: TObject; inline;

C++

HIDESBASE System::TObject* __fastcall Peek();

Properties

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

Description

Returns a reference to the top of the stack.

Call Peek to access the stack without removing an object. Peek returns a reference to the next object in the stack (that is, the last object added).

To remove an object from the stack, call Pop.

See Also

Code Examples