Sign in Join
FPDoc Onlineexperiment

TObjectQueue.Push function

Member of TObjectQueuepublicIn unit Contnrs

Push an object on the queue.

Declaration

pascal
function Push(AObject: TObject): TObject

Arguments

AObject

Object to push on the queue.

Function result

The element just pushed on the queue.

Description

Push pushes another object on the queue. It overrides the Push method as implemented in TQueue so it accepts only objects as arguments.

Errors

If not enough memory is available to expand the queue, an exception may be raised.

See also

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