Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <algorithm>
- #include <iostream>
- #include <string>
- #include <vector>
- #include <set>
- using namespace std;
- template <typename It>
- void PrintRange(It range_begin, It range_end) {
- for (auto it = range_begin; it != range_end; ++it) {
- cout << *it << " "s;
- }
- cout << endl;
- }
- int main() {
- set<int> test = { 1, 1, 1, 2, 3, 4, 5, 5 };
- PrintRange(test.begin(), test.end());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement