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