Guest User

Untitled

a guest
Jun 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4.  
  5. template <class T>
  6. int foo(typename vector<T>::iterator begin, typename vector<T>::iterator end)
  7. {
  8.     return 0;
  9. }
  10.  
  11. int main()
  12. {
  13.     vector<int> v;
  14.     v.push_back(4);
  15.     v.push_back(7);
  16.     cout << foo(v.begin(), v.end()) << endl;
  17.     return 0;
  18. }
Add Comment
Please, Sign In to add comment