#include <iostream>
#include <set>
#include <vector>
Go to the source code of this file.
◆ main()
Definition at line 16 of file test.cpp.
17 {
18 std::set<int>
set1, set2;
19 std::vector<int> aVector;
20
21 aVector.push_back(1);
22 aVector.push_back(1);
23
24 set1.insert(aVector.begin(), aVector.end());
25
26 set2.insert(1);
27 set2.insert(1);
28
32
33 return 0;
34 }
static void set1(uint8 *data, int x, int y)
void printElements(const T &coll, const char *msg="")
◆ printElements()
Definition at line 6 of file test.cpp.
7 {
8 typename T::const_iterator it;
10 for(it = coll.begin(); it != coll.end(); ++it) {
11 std::cout << *it << ' ';
12 }
13 std::cout << std:: endl;
14 }
Referenced by main().