library/STL
copy
란마12
2010. 2. 9. 10:42
- vector
- vec1을 vec2로 copy
vec2.resize(vec1.size());
std::copy(vec1.begin(), vec1.end(), vec2.begin());