The easiest way is to "empty"your vector and loop the empty vector although there are other ways to accomplish this.