RAD Studio VCL Reference
|
Create and initialize list instance.
constructor Create; overload; constructor Create(const AComparer: IComparer<T>); overload; constructor Create(Collection: TEnumerable<T>); overload;
__fastcall TList(); __fastcall TList(const IComparer<T> AComparer); __fastcall TList(TEnumerable<T> Collection);
This overloaded method creates and initializes a list instance.
AComparer is a comparison function. If not provided, the default comparator for the type is used.
Collection is a collection with which to initialize the list. The objects are added in the same order as in Collection. If Collection is specified, the creation is an O(n) operation, where n is the number of items in Collection.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|