System.Generics.Collections.TDictionary.ContainsKey
Delphi
function ContainsKey(const Key: K): Boolean;
C++
bool __fastcall ContainsKey(const K Key);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.Generics.Collections.pas System.Generics.Collections.hpp |
System.Generics.Collections | TDictionary |
説明
キーがディクショナリに存在するかどうかを検査します。
指定されたキーがディクショナリに存在する場合、ContainsKey は true を返します。それ以外の場合は、false を返します。これは、O(1) 操作になります。