IQueue<T>.TryExtract Method
Definition
Attempts to remove and return the element at the beginning of the queue. If the queue has ownership over the instances, then ownership of the returned element is transferred to the caller.
Delphi
function TryExtract(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 .