If I had n vectors I could do something like:
for(auto& i : v1) {
for(auto& j: v2) {
...
for(auto& z: vn){
f(i,j,k,...,z)
}
}
}
but since the vectors over which compute the cartesian product are not known until the user provides some inputs at runtime, I don't know how could I compute the product.
I tried looking up something in the library but I couldn't find anything.