Show: Delphi C++
Display Preferences

System.Generics.Collections.TDictionary.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create(ACapacity: Integer = 0); overload;
constructor Create(const AComparer: IEqualityComparer<TKey>); overload;
constructor Create(ACapacity: Integer; const AComparer: IEqualityComparer<TKey>); overload;
constructor Create(const Collection: TEnumerable<TPair<TKey,TValue>>); overload;
constructor Create(const Collection: TEnumerable<TPair<TKey,TValue>>; const AComparer: IEqualityComparer<TKey>); overload;

C++

__fastcall TDictionary__2(int ACapacity)/* overload */;
__fastcall TDictionary__2(const System::DelphiInterface<System::Generics::Defaults::IEqualityComparer__1<TKey> > AComparer)/* overload */;
__fastcall TDictionary__2(int ACapacity, const System::DelphiInterface<System::Generics::Defaults::IEqualityComparer__1<TKey> > AComparer)/* overload */;
__fastcall TDictionary__2(TEnumerable__1<TPair__2<TKey,TValue> >* const Collection)/* overload */;
__fastcall TDictionary__2(TEnumerable__1<TPair__2<TKey,TValue> >* const Collection, const System::DelphiInterface<System::Generics::Defaults::IEqualityComparer__1<TKey> > AComparer)/* overload */;

Properties

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

Description

Create dictionary.

This overloaded method creates and initializes a dictionary instance. Various combinations of parameters may be used to specify the initial capacity ACapacity, an equality comparison function AComparer, or an initial collection of key-value items Collection.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance