IQueue<T>.TryDequeue Method

Definition

Attempts to remove and return the element at the beginning of the queue.

Delphi
function TryDequeue(var item: T): Boolean

Parameters

item
T

The element that was removed if the operation was successful and the queue does not have ownership of the instances; Default(T) otherwise.

Returns

Boolean

True if an element was removed; otherwise, False .