There is no vector class in MFC, and no, there is no function to do that automatically. You need to do that manually.

If you use a list, you can remove the first element and and one at the tail.

If you use an array, you have to copy the elements, one by one, from i+1 to i, and then set the value you want for the last element.