A type which can be used as a key_type can be used to subscript a map. The subscript operator return mapped_type. For example: map<string, int> world_counts; string str("Hello"); int cnt = world_counts[str];