IDeque<T>.TryExtractFirst Method

Definition

Attempts to remove and return the element at the front of the deque. If the deque has ownership over the instances, then ownership of the returned element is transferred to the caller.

Delphi
function TryExtractFirst(var item: T): Boolean

Parameters

item
T

The element that was removed if the operation was successful; Default(T) otherwise.

Returns

Boolean

True if an element was removed; otherwise, False .