aboutsummaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/iterator/main.cpp
blob: 058a79317d19e170c605b25c6eb1ecee7a27c102 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <string>
#ifdef _LIBCPP_INLINE_VISIBILITY
#undef _LIBCPP_INLINE_VISIBILITY
#endif
#define _LIBCPP_INLINE_VISIBILITY
#include <map>
#include <vector>

typedef std::map<int, int> intint_map;
typedef std::map<std::string, int> strint_map;

typedef std::vector<int> int_vector;
typedef std::vector<std::string> string_vector;

typedef intint_map::iterator iimter;
typedef strint_map::iterator simter;

typedef int_vector::iterator ivter;
typedef string_vector::iterator svter;

int main()
{
	intint_map iim;
	iim[0xABCD] = 0xF0F1;

	strint_map sim;
	sim["world"] = 42;

	int_vector iv;
	iv.push_back(3);

	string_vector sv;
	sv.push_back("hello");

	iimter iimI = iim.begin();
	simter simI = sim.begin();

	ivter ivI = iv.begin();
	svter svI = sv.begin();

	return 0; // Set break point at this line.
}