This question was kind of asked before, but I'm not sure a satisfactory response was really offered. For me, I'm not interested in landing in a std::vector
of std::string
, per se, but rather a std::tuple
.
For instance, if I've got std::vector<A>
, std::vector<B>
, and std::vector<C>
, then I expect perhaps std::vector<std::tuple<A, B, C>>
. Or, even std::set<std::tuple<A, B, C>>
, if that was more appropriate.
Now, I could encode nested for
loops, however, I'd like to do this via functions, template functions if possible, then I suppose variadic would be necessary to accomplish the task.
There are no guarantees that A
, B
, or C
have anything to do with each other, much less conversion to std::string
, as were proposed in a couple of the responses.
I want to say there could be a variadic solution to that, but I'm not exactly sure how to compose the std::vector<T>
or std::vector<T>::value_type
definitions.