IQueue<T>.TryPeek Method
Definition
Attempts to return an element from the beginning of the queue without removing it.
Delphi
function TryPeek(var item: T): Boolean
Parameters
- item
- T
The element at the beginning of the queue if the operation was
successful; Default(T) otherwise.
Returns
Boolean
True if an element was returned; otherwise, False .