Hello
I have a std::vector<std::string> with some elements..
I would like to copy last X elements to another std::list<std::string> and remove them from std::vector.
What is the easiest/best way to do this?
I know I should use std::copy and do interation, but not sure about the second step.
Thanks a lot for help!
Regards



LinkBack URL
About LinkBacks




CornedBee
trdiff_t, i.e. a signed integer of platform word size. 32 bits on 32-bit platforms, 64 on 64-bitters. Practically, though, unless you actually have a vector larger than 2 billion elements, int is fine.