| 1 | #include <map> |
|---|---|
| 2 | #include <string> |
| 3 | #include <vector> |
| 4 | |
| 5 | typedef std::map<int, int> intint_map; |
| 6 | typedef std::map<std::string, int> strint_map; |
| 7 | |
| 8 | typedef std::vector<int> int_vector; |
| 9 | typedef std::vector<std::string> string_vector; |
| 10 | |
| 11 | typedef intint_map::iterator ii_map_iter; |
| 12 | typedef strint_map::iterator si_map_iter; |
| 13 | |
| 14 | typedef int_vector::iterator ivter; |
| 15 | typedef string_vector::iterator svter; |
| 16 | |
| 17 | int main() { |
| 18 | intint_map iim; |
| 19 | iim[0xABCD] = 0xF0F1; |
| 20 | |
| 21 | strint_map sim; |
| 22 | sim["world"] = 42; |
| 23 | |
| 24 | int_vector iv; |
| 25 | iv.push_back(x: 3); |
| 26 | |
| 27 | string_vector sv; |
| 28 | sv.push_back(x: "hello"); |
| 29 | |
| 30 | ii_map_iter iimI = iim.begin(); |
| 31 | si_map_iter simI = sim.begin(); |
| 32 | |
| 33 | ivter ivI = iv.begin(); |
| 34 | svter svI = sv.begin(); |
| 35 | |
| 36 | return 0; // Set break point at this line. |
| 37 | } |
| 38 |
