I have two vectors of ints. I need to cut each of them at some arbitrary point and swap the last half of each. So, if I have:

and I swap at the middle, the resulting vectors would be:Code:a = {1, 2, 3, 4, 5, 6} b = {7, 8, 9, 10, 11, 12}

Now, I could iterate through them and perform the swap to a temporary vector, but I was wondering if there was a function in the STL that would do this for me?Code:a = {1, 2, 3, 10, 11, 12} b = {7, 8, 9, 4, 5, 6}