c++ iterate over two vectors code example Example: iterate over 2 vectors c++ for (auto& [a, b] : zip(containerA, containerB)) { a = b; }