Sign in Join
FPDoc Onlineexperiment

TObjectQueue.Peek function

Member of TObjectQueuepublicIn unit Contnrs

Look at the first object in the queue.

Declaration

pascal
function Peek: TObject

Function result

The first element in the queue, or Nil if the queue is empty.

Description

Peek returns the first object in the queue, without removing it from the queue. If there are no more objects in the queue, Nil is returned.

Errors

None

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.