|
-
April 2nd, 2003, 06:39 PM
#1
Swapping Vector
I have a vector of objects, the type is not important
At some point, I have an object down the list that I would like to move farther up the list (an example follows)
What is the best way to do this?
Example:
1,2,3,4,5,6,7,8,9
...then...
1,2,3,7,4,5,6,8,9
Notice how seven is promoted to vector[3]? What would be the best way to do this?
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|