Skip to content

TStack

Pointer Stack.

    Declaration

    Source position: contnrs.pp line 159

    type
    
      TStack = class(TOrderedList)
      end;
    

    Description

    TStack is a descendent of TOrderedList which implements Push and Pop behaviour as a stack: what is last pushed on the stack, is popped of first (LIFO: Last in, first out).

    TStack offers no new methods, it merely implements some abstract methods introduced by TOrderedList

    See also

    Name Description
    TOrderedList Base class for queues and stacks.
    TObjectStack Object instances stack.
    TQueue Pointer queue.