API:System.Generics.Collections.TObjectStack.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create; overload;
constructor Create(AOwnsObjects: Boolean); overload;
constructor Create(const Collection: TEnumerable<T>; AOwnsObjects: Boolean = True); overload;

C++

__fastcall TObjectStack__1()/* overload */;
__fastcall TObjectStack__1(bool AOwnsObjects)/* overload */;
__fastcall TObjectStack__1(TEnumerable__1<T>* const Collection, bool AOwnsObjects)/* overload */;
/* {System_Generics_Collections}TStack<System_Generics_Collections_TObjectStack<T>_T>.Create */ inline __fastcall TObjectStack__1(TEnumerable__1<T>* const Collection)/* overload */ : TStack__1<T>(Collection) { }

Properties

Type Visibility Source Unit Parent
constructor public
System.Generics.Collections.pas
System.Generics.Collections.hpp
System.Generics.Collections TObjectStack

Description

Create stack.

System.Generics.Collections.TObjectStack.Create inherits from System.Generics.Collections.TStack.Create. All content below this line refers to System.Generics.Collections.TStack.Create.

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.

See Also