Thread: copying a list
View Single Post
Old 05-16-2004, 03:11 PM   #2 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
Yes there is. It is called "copy".
Code:
vector<int> MyIntVector;
//load vector here with your ints: MyInVector.push_back(5); etc...
copy(MyIntVector.begin(), MyInVector.end(), myothercontainer) )
__________________
Valmont is offline   Reply With Quote