There currently exist ways to concatenate or merge two vectors with one function.
But, it seems that there's no way to concatenate or merge more than three vectors with one function.
For example,
vector<string> a = {"a", "b"};
vector<string> b = {"c", "d"};
vector<string> c = {"e", "f"};
vector<string> d = {"g", "h"};
// newVector has to include {"a", "b", "c", "d", "e", "f", "g", "h"}
vector<string> newVector = function(a, b, c, d);
If there is not, it seems that this can be implemented by using variadic template.
But, I can't imagine how it can be implemented by variadic template.
Are there any solutions?