how to copy one vector to another

#include <iostream>
#include <vector>

int main() {
    // Step 1: Declare two vectors
    std::vector<int> sourceVector = {1, 2, 3, 4, 5};
    std::vector<int> destinationVector;

    // Step 2: Use the assignment operator to copy elements from source to destination
    destinationVector = sourceVector;

    // Step 3: Display the elements of the destination vector
    std::cout << "Destination Vector: ";
    for (int element : destinationVector) {
        std::cout << element << " ";
    }

    return 0;
}