Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. #include <set>
  4.  
  5. using namespace std;
  6.  
  7.  
  8. template<typename Type>
  9. void print(Type arg) {
  10.     for (auto i : arg)
  11.         cout << i << " ";
  12. }
  13.  
  14. int main() {
  15.     vector<int> a(4);
  16.     a = {1, 2, 3, 4};
  17.     set<bool> b;
  18.     b.insert(true);
  19.     b.insert(false);
  20. //    for (auto i : a)
  21. //        cout << i << " ";
  22.     print(b);
  23.     return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement