System.Generics.Collections.TDictionary.Create

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

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 */;

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
constructor public
System.Generics.Collections.pas
System.Generics.Collections.hpp
System.Generics.Collections TDictionary

Beschreibung

Erzeugt ein Dictionary.

Diese überladene Methode erzeugt und initialisiert eine Dictionary-Instanz. Verschiedene Parameterkombinationen können für die Anfangskapazität ACapacity, eine Gleichheitsfunktion AComparer oder eine Anfangskollektion der Schlüssel/Werteeinträge Collection verwendet werden.

Siehe auch