Duplicate: https://stackoverflow.com/a/61819663/11998382
This should be possible if we know the size of the outer vector at compile time.
You just have to write the c++ variadic-template equivalent of the following python code:
def transpose(rng_of_rng):
return zip(*rng_of_rng)