TQueue<T>.TryPeek(T) Method

Attempts to return an element from the beginning of the queue without removing it.

Namespace: Spring.Collections.Queues
public
 function TryPeek(out item: T): Boolean;

Parameters

item
Type: T

The element at the beginning of the queue if the operation was successful, Default(T) otherwise.

Return Value

Type: Boolean

True if an element was returned from the beginning of the queue; otherwise, False.

Implements

IQueue<T>.TryPeek(T)