Standard LibraryTypesMapMethodscontainsOn this pagecontains Method of Map. contains(const string key) -> bool Checks if the map contains an element with the specified key. Parameters key: The key to check for.