#include <iostream>
#include <algorithm>
#include <vector>
using std::cout;
using std::endl;
using std::vector;
template<class InIter>
void print(InIter start, InIter end) {
InIter intit;
for (InIter intit = start; intit != end; intit++)
cout << *intit << " ";
cout << endl;
}
int main()
{
vector<int> vec = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
print(vec.begin(), vec.end());
return 0;
}
/*
run:
0 1 2 3 4 5 6 7 8 9
*/