]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/main.cpp
Vendor import of lldb trunk r256945:
[FreeBSD/FreeBSD.git] / packages / Python / lldbsuite / test / functionalities / data-formatter / data-formatter-stl / libstdcpp / iterator / main.cpp
1 #include <string>
2 #include <map>
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 iimter;
12 typedef strint_map::iterator simter;
13
14 typedef int_vector::iterator ivter;
15 typedef string_vector::iterator svter;
16
17 int main()
18 {
19     intint_map iim;
20         iim[0] = 12;
21         
22         strint_map sim;
23         sim["world"] = 42;
24     
25         int_vector iv;
26         iv.push_back(3);
27         
28         string_vector sv;
29         sv.push_back("hello");
30
31         iimter iimI = iim.begin();
32         simter simI = sim.begin();
33         
34         ivter ivI = iv.begin();
35         svter svI = sv.begin();
36
37     return 0; // Set break point at this line.
38 }