On 15/01/2014 07:16 PM, Warp wrote:
> If you are indexing the vector directly, then just do a
>
> std::swap(v[index1], v[index2]);
This is probably pretty much exactly what the code needs to do. (The
code sits behind a GUI where the user can reorder the contents of a list.)
Post a reply to this message
|