Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <set>
- using namespace std;
- template<typename Type>
- void print(Type arg) {
- for (auto i : arg)
- cout << i << " ";
- }
- int main() {
- vector<int> a(4);
- a = {1, 2, 3, 4};
- set<bool> b;
- b.insert(true);
- b.insert(false);
- // for (auto i : a)
- // cout << i << " ";
- print(b);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement