IStack<T>.TryPop Method

Definition

Attempts to remove and return the element at the top of the stack.

Delphi
function TryPop(var item: T): Boolean

Parameters

item
T

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

Returns

Boolean

True if an element was removed; otherwise, False .