System.Generics.Collections.TDictionary.ContainsKey

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ContainsKey(const Key: K): Boolean;

C++

bool __fastcall ContainsKey(const K 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