Standard LibraryTypesMapMethodseraseOn this pageerase Method of Map. erase(const string key) -> integer Removes elements matching the specified key from the container. Parameters key: The key of the elements to remove.