vector<int> v;
//Code that fills up v
copy(v.begin(), v.end(), ostream_iterator<int>(cout, "\n"));
Can I do something similar if I have a vector of some objects of type T that I've defined ?
I guess if my object X is of type T, then cout << X needs to work for the copy code to work. How can I do that ?