RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TObjectQueue.Peek Method

Returns a reference to the front of the queue.

Pascal
function Peek: TObject;
C++
__fastcall TObject * Peek();

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

To remove an object from the queue, call Pop

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!