System.Generics.Collections.TDictionary.ContainsKey
Delphi
function ContainsKey(const Key: TKey): Boolean;
C++
bool __fastcall ContainsKey(const TKey Key);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Generics.Collections.pas System.Generics.Collections.hpp |
System.Generics.Collections | TDictionary |
Description
Test if key in dictionary.
ContainsKey returns true if the given key is in the dictionary and false otherwise. This is an O(1) operation.
See Also
Code Examples