System.Generics.Collections.TStack.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create; overload;
constructor Create(const Collection: TEnumerable<T>); overload;

C++

__fastcall TStack__1()/* overload */;
__fastcall TStack__1(TEnumerable__1<T>* const 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.

See Also