V
Vasileios Zografos
Hi there I am using the STL vector and I was wondering, is there an
existing method for reversing the contents of one vector?
e.g. vector<int> v1 which has entries 1,2,3,4,5
and I want to end up with v1=5,4,3,2,1 or perhaps leave v1 intact and
generate a new vector v2=5,4,3,2,1
so, does the STL have something allready? or do I have to do it manualy?
Thanks
V.Z.
existing method for reversing the contents of one vector?
e.g. vector<int> v1 which has entries 1,2,3,4,5
and I want to end up with v1=5,4,3,2,1 or perhaps leave v1 intact and
generate a new vector v2=5,4,3,2,1
so, does the STL have something allready? or do I have to do it manualy?
Thanks
V.Z.