Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 228 Bytes

11.26.md

File metadata and controls

6 lines (4 loc) · 228 Bytes

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];