Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- using namespace std;
- template <class T>
- int foo(typename vector<T>::iterator begin, typename vector<T>::iterator end)
- {
- return 0;
- }
- int main()
- {
- vector<int> v;
- v.push_back(4);
- v.push_back(7);
- cout << foo(v.begin(), v.end()) << endl;
- return 0;
- }
Add Comment
Please, Sign In to add comment