System.Generics.Collections.TObjectQueue.Dequeue

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

procedure Dequeue;

C++

HIDESBASE void __fastcall Dequeue(void);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Generics.Collections.pas
System.Generics.Collections.hpp
System.Generics.Collections TObjectQueue

Description

Remove top queue item.

Dequeue removes but does not return the top element of the queue. Count is decremented by 1. If Count is already 0, an error is raised.

Note: TObjectQueue.Dequeue differs from TQueue.Dequeue in that it is a procedure and does not return the dequeued element. Otherwise, both methods function similarly. Use TQueue.Peek to work with the head of the queue and TQueue.Dequeue when finished with the head, or alternatively use TQueue.Extract to take ownership.

See Also

Code Examples