Check out example codes for "iterate over 2 vectors c++". It will help you in understanding the concepts better.

Code Example 1

for (auto& [a, b] : zip(containerA, containerB)) {
    a = b;
}

Learn ReactJs, React Native from akashmittal.com