Last active
August 8, 2017 08:28
-
-
Save PaulChana/972fa7b207d1688695103a00d691b37b to your computer and use it in GitHub Desktop.
Append vector
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a.insert (std::end (a), std::begin (b), std::end (b)); | |
// Less efficient but can be used for const members: | |
std::copy (std::begin (b), std::end (b), std::back_inserter (a)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment