What is the best way to concatenate two vectors?
I’m using multitreading and want to merge the results. For example: std::vector<int> A; std::vector<int> B; std::vector<int> AB; I want AB to have to contents of A and the contents of B in that order. What’s the most efficient way of doing something like this? 11 Answers 11