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