   std - getting part of a vector
  If I have a vector of pointers  vector<*int> numbers;and a emty vector of the same type called  somenum.how do I put the first 10 element of numbers into somenum?Thanks.   
somenum.assign(numbers.begin(), numbers.begin()+10);;  same with the constructor:std::vector<int> somenum(numbers.begin(), numbers.begin()+10);orsomenum.insert(somenum.begin(), numbers.begin(), numbers.begin()+10);Where the first parameter says where to start inserting from.Also note: assign has a sid-effect of clearing the vector as well.   ;  I believe this needs to be said, that you should remember this will only copy the data(the pointers) and not the data the pointers are pointing at so be careful.   