System.Generics.Collections.TStack.Create
Delphi
constructor Create; overload;
constructor Create(const Collection: TEnumerable<T>); overload;
constructor Create(const Collection: IEnumerable<T>); overload;
C++
__fastcall TStack__1()/* overload */;
__fastcall TStack__1(TEnumerable__1<T>* const Collection)/* overload */;
__fastcall TStack__1(const System::DelphiInterface<System::IEnumerable__1<T> > Collection)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | System.Generics.Collections.pas System.Generics.Collections.hpp |
System.Generics.Collections | TStack |
Description
Create stack.
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.