xref: /llvm-project/lldb/test/API/functionalities/data-formatter/data-formatter-stl/libstdcpp/iterator/main.cpp (revision 99451b4453688a94c6014cac233d371ab4cc342d)
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 
main()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 }
39