Skip to content

Instantly share code, notes, and snippets.

@PaulChana
Last active August 8, 2017 08:28
Show Gist options
  • Save PaulChana/972fa7b207d1688695103a00d691b37b to your computer and use it in GitHub Desktop.
Save PaulChana/972fa7b207d1688695103a00d691b37b to your computer and use it in GitHub Desktop.
Append vector
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