RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStack.Create Constructor

Create stack.

Pascal
constructor Create(Collection: TEnumerable<T>); overload;
C++
__fastcall TStack(TEnumerable<T> Collection);

This method creates and initializes a TStack instance. 

Collection is a collection whose objects are pushed onto the stack in the order they are in Collection

Create is an O(n) operation, where n is the number of elements in Collection

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!