Ticket #7439: main.cpp
| File main.cpp, 406 bytes (added by , 10 years ago) |
|---|
| Line | |
|---|---|
| 1 | #include <cstdlib> |
| 2 | #include <iostream> |
| 3 | #include <boost/container/flat_set.hpp> |
| 4 | |
| 5 | using namespace std; |
| 6 | |
| 7 | int main(int argc, char *argv[]) |
| 8 | { |
| 9 | int d[2] = {2, 3}; |
| 10 | boost::container::flat_set<int> set; |
| 11 | |
| 12 | set.insert(1); |
| 13 | set.insert(4); |
| 14 | set.insert(boost::container::ordered_unique_range_t(), d, d + 2); |
| 15 | for (int i : set) |
| 16 | cout << i << endl; |
| 17 | |
| 18 | return EXIT_SUCCESS; |
| 19 | } |
