|
-
February 17th, 2012, 04:22 PM
#7
Re: Move elements from one container to another without loop
 Originally Posted by Yadrif
But that will drop all elements not just what was copied with std::copy.
Correct; to remove just those elements, use the version of erase() taking two iterators.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|